Is there a way to delete tomcat logs which are "older" than 5 days?

On 8/22/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
> You might want to truncate, 'not delete', instead.
>
> David Smith wrote:
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"This is your life and it's ending one minute at a time."

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to