This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Customer surveys are for companies who didn't pay proper attention to begin with.
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?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: The Tomcat log file catalina.out is never cleaned/purged