简体   繁体   中英

Tomcat redirect 'stderr' content to 'stdout'

I have just migrated web application from Tomcat6 to Tomcat7. But after this errors that appeared in application are logged to 'stderr.log' file. When I have used Tomcat6 errors and output were logged to 'stdout.log' file. So I was able to see every information I need in one(stdout.log) file.

How to 'tell' Tomcat7 to log errors and output to 'stdout.log' file as it was in Tomcat6?

Have a look at the logging.properties file in the conf/ directory of your Tomcat Installation. This is the point where the general logging is configured.

It is in the java.util.logging format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM