tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: log rotation
Date Fri, 21 Jul 2006 17:33:19 GMT
Ditto if you're looking for a universal rotator(independent of the log vendor source)
suggest Implementing some sort flavor of cron job to do the rotating..such as

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "David Smith" <>
To: "Tomcat Users List" <>
Sent: Friday, July 21, 2006 12:52 PM
Subject: Re: log rotation

> catalina.out is the redirected output of tomcat -- not a product of 
> log4j or commons-logging.  As such you're best bet is to have a cron job 
> stop tomcat, rename the file and then restart it at say 6:00am when the 
> internet hits the lowest ebb of demand.  That method should be safe for 
> all OS's. 
> Unix/Linux seem to handle the sudden disappearance of a file well (or at 
> least better than Windows) and simply create a new one.  Just renaming 
> the file without stop/start may be an option for you on *nix systems.
> --David
> Mirou, Antoine wrote:
>>What is the easiest way to do a log rotation with tomcat ?
>>For example, I'd like to rotate catalina.out on a daily basis and have up to 5 versions
kept. How can I do it ?
>>Antoine Mirou
>>Ce message et toutes les pièces jointes (ci-après le « message ») sont confidentiels
et établis à l'intention exclusive de ses destinataires. Toute utilisation de ce message
non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. Si vous recevez ce message par erreur, merci de
le détruire sans en conserver de copie et d'en avertir immédiatement l'expéditeur. Internet
ne permettant pas de garantir l'intégrité de ce message, la Caisse des Dépôts et Consignations
décline toute responsabilité au titre de ce message s'il a été modifié, altéré, déformé
ou falsifié.
>>This email message and any attachments ("the email") are confidential and intended
only for the recipient(s) indicated. If you are not an intented recipient, please be advised
that any use, dissemination, forwarding or copying of this email whatsoever is prohibited
without Caisse des Depots et Consignations's prior written consent. If you have received this
email in error, please delete it without saving a copy and notify the sender immediately.
Internet emails are not necessarily secured, and Caisse des Depots et Consignations declines
responsibility for any changes that may have been made to this email after it was sent.
>>To start a new topic, e-mail:
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:
View raw message