I use logrotate to rotate catalina.out. You need to restart Tomcat to do this, but I do it in a maintenance window.
Ben Ricker Wellinx.com On Thu, 2003-06-12 at 15:54, Filip Hanik wrote: > log4j works for your own code, but if you are a sysadmin, and need to rotate > catalina.out (which is essentially System.out) then you are toast :-) > > I am gonna ask the developers to switch to log4j instead of System.out, they > might give me the finger :) > > filip > > > -----Original Message----- > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 12, 2003 1:27 PM > > To: Tomcat Users List > > Subject: RE: rotating catalina.out > > > > > > > > Howdy, > > It seems you're right -- I hadn't looked at the code for a while. > > > > This is why I suggested tomcat use the log4j file rollover mechanism, > > which is very robust. But I didn't get much positive feedback, and I > > certainly don't have the bandwidth to do it myself right now... > > > > Yoav Shapira > > Millennium ChemInformatics > > > > > > >-----Original Message----- > > >From: Filip Hanik [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, June 12, 2003 4:24 PM > > >To: Tomcat Users List > > >Subject: RE: rotating catalina.out > > > > > >what mechanism is that? > > > > > >It looks like the logs are being held by an open file descriptor, so > > >rotating the catalina.out will just stop logging after the first > > rotation, > > >since you cause an IOException in Tomcat. > > > > > >filip > > > > > >> -----Original Message----- > > >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > >> Sent: Thursday, June 12, 2003 1:12 PM > > >> To: Tomcat Users List > > >> Subject: RE: rotating catalina.out > > >> > > >> > > >> > > >> Howdy, > > >> Why not use the nightly rollover mechanism used for servlet logs, > > >> localhost logs, etc. also for catalina.out? > > >> > > >> Yoav Shapira > > >> Millennium ChemInformatics > > >> > > >> > > >> >-----Original Message----- > > >> >From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] > > >> >Sent: Thursday, June 12, 2003 4:04 PM > > >> >To: Tomcat Users List > > >> >Subject: Re: rotating catalina.out > > >> > > > >> >I was going to experiment with it next week. It would be nice to do > > it > > >> >within Tomcat and stay away from the Unix-y stuff. That way it > > would > > >> also > > >> >work for the windows users. > > >> > > > >> >I have a feeling the Unix-y stuff will have to suffice for a bit. > > >> > > > >> >-e > > >> > > > >> >On Thu, 12 Jun 2003, Filip Hanik wrote: > > >> > > > >> >> did anyone figure out how to rotate this bad boy and the > > >> localhost_log > > >> >> without shutting down tomcat? > > >> >> > > >> >> Filip > > >> >> > > >> >> > > >> >> > > --------------------------------------------------------------------- > > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> >> For additional commands, e-mail: > > [EMAIL PROTECTED] > > >> >> > > >> >> > > >> > > > >> > > >--------------------------------------------------------------------- > > >> >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> >For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > >> > > >> > > >> This e-mail, including any attachments, is a confidential > > >> business communication, and may contain information that is > > >> confidential, proprietary and/or privileged. This e-mail is > > >> intended only for the individual(s) to whom it is addressed, and > > >> may not be saved, copied, printed, disclosed or used by anyone > > >> else. If you are not the(an) intended recipient, please > > >> immediately delete this e-mail from your computer system and > > >> notify the sender. Thank you. > > >> > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > This e-mail, including any attachments, is a confidential > > business communication, and may contain information that is > > confidential, proprietary and/or privileged. This e-mail is > > intended only for the individual(s) to whom it is addressed, and > > may not be saved, copied, printed, disclosed or used by anyone > > else. If you are not the(an) intended recipient, please > > immediately delete this e-mail from your computer system and > > notify the sender. Thank you. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
