tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
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.

--David

Ronald Klop wrote:

> On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List 
> <users@tomcat.apache.org> 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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message