This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes The Tomcat log file catalina.out is never cleaned/purged Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "The Tomcat log file catalina.out is never cleaned/purged" Watch "The Tomcat log file catalina.out is never cleaned/purged" New topic
Author

The Tomcat log file catalina.out is never cleaned/purged

suman deb
Ranch Hand

Joined: Jul 14, 2005
Posts: 54
Hi all,

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?

Thanks
Suman
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15662
    
  15

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.
suman deb
Ranch Hand

Joined: Jul 14, 2005
Posts: 54
Hi Tim,

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?

Thanks
Suman
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Tomcat log file catalina.out is never cleaned/purged
 
Similar Threads
upgrade from tomcat 5 to tomcat 6
WARN level is not working
server log disappear from console
How to clear log files?
Tomcat 5.5 logging internal process in tomcat_out.log