That would require installing/distributing Apache's rotatelogs program, or putting some sort of switch in there to determine if rotatelogs existed.
John
On Tue, 10 Jun 2003 13:39:31 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
Howdy, Can you submit your proposed modification to the script, and what it would require (e.g. downloading rotatelogs and placing it somewhere)? I think catalina.out rotation is a generically useful enough feature to make its way into the tomcat distribution eventually...
Yoav Shapira Millennium ChemInformatics
new-----Original Message----- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out.
Something I have always wanted to try was to modify
this line of the catalina.sh
$JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ org.apache.catalina.startup.Bootstrap "$@" start \ >> $CATALINA_BASE/logs/catalina.out
to use the rotatelogs progran from apache, see for example http://httpd.apache.org/docs-2.0/logs.html#piped
or simply catalina.sh do the rotation here using mv of course you have to remeber to update the script when you install atomcatthe
-----Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:00 AM To: Tomcat Users List Subject: Re: Rotating catalina.out.
In windows - your screwed.
In unix: (YMMV) cp -f catalina.out catalina.out-old cat /dev/null > catalina.out
In a nutshell - wacky every developer upside the head which uses System.out,
System.err. Then make them use a logging package such as log4j, commons-logging, ... And catalina.out becomes "unused"
-Tim
Eric J. Pinnell wrote:Hi,Does
Our catalina.out gets rather large. We would like to keep the data.anybody have a good solution for rotating it w/o restarting the application? Or can that even be done?
I was thinking of renaming the file and then touching catalina.out to create a new file but I have some concerns that tomcat won't write tofile once it sees it move.
Anybody have any thoughts?
-e
--------------------------------------------------------------------- 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]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
