|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
logging catalina.out and localhost-##.log - don't appendWhat do you need to do to get tomcat to create a fresh catalina.out and
localhost.log file for every restart? For development, I don't want those log files to append or roll for each new day. thanks, -Rob --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: logging catalina.out and localhost-##.log - don't append> From: Robert Koberg [mailto:rob@...]
> Subject: logging catalina.out and localhost-##.log - don't append > > What do you need to do to get tomcat to create a fresh > catalina.out and localhost.log file for every restart? Is this a trick question? Why don't you just delete everything in the logs directory before running Tomcat? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: logging catalina.out and localhost-##.log - don't appendOn Fri, 2008-05-09 at 13:27 -0500, Caldarale, Charles R wrote:
> > From: Robert Koberg [mailto:rob@...] > > Subject: logging catalina.out and localhost-##.log - don't append > > > > What do you need to do to get tomcat to create a fresh > > catalina.out and localhost.log file for every restart? > > Is this a trick question? Why don't you just delete everything in the > logs directory before running Tomcat? because it is a (minor) pain. I am starting/stopping from a console with ./bin/startup.sh and ./bin/shutdown.sh - not starting/stopping from an ant task, so I would be manually deleting each time (and emptying my trash). I would like it to be like log4j where it creates the new file from scratch. Is there no way to do this? --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: logging catalina.out and localhost-##.log - don't append> From: Robert Koberg [mailto:rob@...]
> Subject: RE: logging catalina.out and localhost-##.log - don't append > > I am starting/stopping from a console with ./bin/startup.sh So modify the script (or wrapper it) to do "rm -f ./logs/*" and you're done. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: logging catalina.out and localhost-##.log - don't appendOn May 9, 2008, at 1:43 PM, Caldarale, Charles R wrote:
>> From: Robert Koberg [mailto:rob@...] >> Subject: RE: logging catalina.out and localhost-##.log - don't append >> >> I am starting/stopping from a console with ./bin/startup.sh > > So modify the script (or wrapper it) to do "rm -f ./logs/*" and you're > done. Of course, if you need to restart your tomcat immediately and look at your old logs to debug a problem - or if someone else does a year from now. It will drive you nuts wondering where they went. In this case you can do a log rotate something like this: #!/bin/sh DIR=/export/home/apachecat file='/export/home/apachecat/tomcat/logs/catalina.out' for num in 5 4 3 2 1 0; do pnum=`expr $num + 1` mv $file.$num $file.$pnum done mv $file $file.0 Regards, Dave > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e- > and its attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |