Where to configure internal tomcat7 stdout/stderr log files

后端 未结 5 1271
广开言路
广开言路 2021-01-07 23:13

I\'m using Apache Tomcat 7.0.40 with Log4j config according to http://tomcat.apache.org/tomcat-7.0-doc/logging.html

Everything\'s working as expected, except that so

5条回答
  •  情深已故
    2021-01-07 23:33

    I had the same issue and finally stumbled on the solution. Tomcat 7 for windows has a tomcat properties application called Monitor Tomcat. On the logging tab you need to delete the "auto" value in the redirect stdout and stderr input boxes. Just leave it blank and it won't create those files. Then you can use log4j to create rolling log files for those critical files for future debug purposes.

    Hope that helps.

提交回复
热议问题