Need your help. I am using tomcat 5.0.27 and the log file catalina.out is never cleaned/rollup. Can you please tell me how can I clean the catalina.out automatically once it reaches its max size?
Is there any property in logger.properties or server.xml which can be used?
catalina.out is not a true log file. It's the combined stdout/stderr file for the Tomcat JVM and the log messages are actually simply the result of Tomcat's default log-to-console configuration.
So, unless you want to customize the Tomcat server logger configuration (not for the faint-hearted), you're on your own. Most people tend to rotate/purge catalina.out as part of their startup/shutdown script.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 14, 2005
Thanks for the reply. Could you please tell me how can rollup catalina.out as part of startup/shutdown script, can you please provide me the piece of code/configuration?