Rolling catalina.out in Tomcat 5.0
Can you configure the Tomcat 5.0 standard error/output log file (catalina.out) to roll nightly?
Yes. You can use the swallowOutput attribute for web application contexts. You need to set each context to swallow output including the default context. Once swallowed, the output will go to the Logger that's defined at the level of each context. So, be sure to have at least one Logger defined in server.xml. Then, by default, the Logger will roll nightly. Attached is an example of a server.xml configuration.
| Attachment | Size |
|---|---|
| server.xml | 2.38 KB |
