Tomcat Logging using log4j?

后端 未结 2 652
予麋鹿
予麋鹿 2021-01-21 23:16

I have installed Apache tomcat 5.5 as a service in my system. Also i added a custom logging file using log4j for a web application. whenever i used system.out.println(\"some tex

2条回答
  •  无人及你
    2021-01-21 23:46

    When started as a service, you can configure the file locations for the stdout and stderr messages from the Service Manager.

    Though I agree with @Brabster, you should be using log4j logging instead of System.out when you want to move into production.

    This link has a screenshot and reference. See section "Testing #2"

提交回复
热议问题