You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Ward <pw...@jpl.nasa.gov> on 2006/02/01 01:38:53 UTC
rotating tomcat logs
Does Tomcat have a directive for rotating logs?
I would like to rotate out the following logs:
admin.log
catalina.log
host-manager.log
localhost.log
localhost_access_log
manager.log
or do I need to rotate them out manually, e.g.
cp -p admin.log admin.`date +%Y-%m-%d`.log
cat /dev/null > admin.log
--
______________________________________________________
__ _____ __ Patrick Ward
/_/| /____/\ /_/| Jet Propulsion Lab
|| | | |__ \| || | Pasadena, CA
___|| | | |__)/| || |___ M/S 2923-120
/___|| | | |___/ ||/___/| 818-354-7788
|_____|/ |_|/ |_____|/ pward@jpl.nasa.gov
______________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rotating tomcat logs
Posted by Francis Galiegue <fg...@gmail.com>.
2006/2/1, Tim Lucia <ti...@yahoo.com>:
> I use log4j as the logging implementation, and then chose the
> RollingFileAppender (Daily or Size--your choice)
>
Or use logrotate (that is, if you use some Unix variant and the program exists).
--
Francis Galiegue, fgaliegue@gmail.com, fg@one2team.com, fg6@wanadoo.fr
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: rotating tomcat logs
Posted by Tim Lucia <ti...@yahoo.com>.
I use log4j as the logging implementation, and then chose the
RollingFileAppender (Daily or Size--your choice)
Tim
-----Original Message-----
From: Patrick Ward [mailto:pward@jpl.nasa.gov]
Sent: Tuesday, January 31, 2006 7:39 PM
To: users@tomcat.apache.org
Subject: rotating tomcat logs
Does Tomcat have a directive for rotating logs?
I would like to rotate out the following logs:
admin.log
catalina.log
host-manager.log
localhost.log
localhost_access_log
manager.log
or do I need to rotate them out manually, e.g.
cp -p admin.log admin.`date +%Y-%m-%d`.log
cat /dev/null > admin.log
--
______________________________________________________
__ _____ __ Patrick Ward
/_/| /____/\ /_/| Jet Propulsion Lab
|| | | |__ \| || | Pasadena, CA
___|| | | |__)/| || |___ M/S 2923-120
/___|| | | |___/ ||/___/| 818-354-7788
|_____|/ |_|/ |_____|/ pward@jpl.nasa.gov
______________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org