You can include a java.text.SimpleDateFormat string enclosed
within "${}" in the "path" specification of <LogSetter> in
the server.xml. For example, the <LogSetter> for the
"servlet_log" in the default server.xml uses:
path="logs/servlet-${yyyyMMdd}.log"
This causes a new log to be started each day. Note that
Tomcat 3.3.1 and earlier still write/rewrite a new file when
Tomcat is restarted. The Tomcat 3.3.x nightly has been updated
to append.
Cheers,
Larry
> -----Original Message-----
> From: Jack Long [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 7:47 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3 log rotation in Windows 2000
>
>
> Anyone know a good way to rotate Tomcat logs (e.g.,
> stdout.log) in Windows
> without stopping Tomcat? We capture lots of logging info and the file
> builds quickly, but we want to avoid the loss of user
> sessions that comes
> with stopping Tomcat to clear/delete the log file. While
> Tomcat is running,
> Windows will not let it be delete because the file is in use.
>
>
>
> Thanks in advance.
>
>
>
> Jack L
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>