Wendy, I set the swallowOutput to true on one of my contexts, and now most of my logging is going to the automatically rotated context log files. the only thing showing up in my catalina.out is the startup and shutdown messages. So if you do this it may eliminate your need to deal with catalina.out.
info is here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html search for swallowOutput. And Yoav, thank you, very much. dave the snip of my server.xml: <Host name="100.0.0.1"> <alias>www.domain.com</alias> <Context path="" docBase="/web/sites/donkey" reloadable="true" swallowOutput="true" /> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="donkey_log." suffix=".txt" timestamp="true"/> </Host> On Fri, 2004-02-27 at 18:28, Wendy Smoak wrote: > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > It's not a catalina Logger, it's just the trap for > > System.out/System.err. one good way to get it to "rotate" is to add > > swallowOutput="true" to your Context definition. > > Of course, patches/enhancements are always welcome as well. > > Thanks for that, it will save me some research when this comes back up > on my "things to do" list! Every month on maintenance weekend I stop > Tomcat, rename catalina.out and restart Tomcat. A bit of a pain, but I > don't like the file getting too big. At least now I know it isn't > currently possible. > > This would be a great enhancement. Would someone who is familiar with > the Tomcat code take a moment to describe how you think it could be > done? Or just point in the general direction of the code that would > need to be changed. Getting started is the hardest part, and I'm not > familiar enough with Tomcat to know where to look. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
