Larry: 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? JL -----Original Message----- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] 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: 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]>