• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
suman deb
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
suman deb
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic