Where to configure internal tomcat7 stdout/stderr log files

后端 未结 5 1226
广开言路
广开言路 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:29

    For those who just want to customize the location where these 3 logs are created: If you run Tomcat as a service and you want to customize where the commons-daemon, stderror and stdout reside you can start your service with the command line parameter --LogPath or set on the server machine an environment variable PR_LOGPATH with your custom path.

    This is documented also here together will other params: https://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html

提交回复
热议问题