I am using Tomcat version 5.5.x. My WAR sets its own logging properties successfully and logs to $TOMCAT_HOME/logs/.YYYY-MM-DD.log. Everything that is written to my log is also written to catalina.out. Is there a way to stop the redundant logging to catalina.out stop?
views:
32answers:
1
+1
A:
Change your application's logging configuration so it doesn't log anything to the console/standard out. Tomcat redirects standard out to the catalina.out
file, so if you see output in catalina.out
it implies your application is writing to the console.
matt b
2010-10-13 17:23:50
Give me at least a hint as how to do this.
dacracot
2010-10-13 17:25:14
1. Open up your application's logging configuration 2. remove the part of the configuration sending output to standard out
matt b
2010-10-13 17:26:24
So I changed the java.util.logging.ConsoleHandler.level value from FINE to WARNING and this seems to work. I realize there will still be some output to catalina.out, but not everything.
dacracot
2010-10-13 17:39:24