| 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: 14487
|
|
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
|
 |
 |
|
|
subject: The Tomcat log file catalina.out is never cleaned/purged
|
|
|