tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: Delete Tomcat logs
Date Wed, 22 Aug 2007 12:01:53 GMT
AFAIK, this won't work on Windows unless you stop tomcat before and 
restart tomcat after.  Windows keeps the log file open and will do 
strange things if you take the file out from underneath it.  I believe 
log4j has options to support what the OP wants through log rotation.


Ronald Klop wrote:

> On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List 
> <> wrote:
>> Do you know some Windows script to delete Tomcat logs after 5 days?
>> Thanks a lot
> Windows has a scheduler. Put 'DEL c:\Tomcat\logs\*.*' in it every 5 days.
> Ronald.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message