tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Long <>
Subject RE: Tomcat 3.3 log rotation in Windows 2000
Date Thu, 05 Sep 2002 16:44:44 GMT

Thanks so much for the response -- this has been a vexing problem for us.

Our problem is with the stdout.log which we set on the command line when
starting Tomcat (eg, -out F:\TomcatLogs\stdout.log). Perhaps this is a JVM
issue that can't be address directly with Tomcat (??). The servlet and
jasper logs that are set in server.xml rotate just fine.

I am assuming (perhaps incorrectly) that the syntax you suggested for the
server.xml file will not work on the command line.

Any ideas?


-----Original Message-----
From: Larry Isaacs [] 
Sent: Thursday, September 05, 2002 6:48 AM
To: Tomcat Users List
Subject: RE: Tomcat 3.3 log rotation in Windows 2000

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:


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.


> -----Original Message-----
> From: Jack Long [] 
> Sent: Wednesday, September 04, 2002 7:47 PM
> To:
> 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:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message