You can gain more control over Tomcat's logging process by using a log4j.properties file. Follow the instructions at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html For generating the log file each time you restart the server, add to the log4j.properties file a new one: log4j.appender.R.append = false Regards, Marius -----Original Message----- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 5:34 PM To: Tomcat Users List Subject: how to delete log files (not append) ? Hi, Hopefully this is an easy one... I'm running tomcat 4.1.31 and would like to have the log files delete each time I restart tomcat. Currently it's just appending to the log files. Here's a snippet of my server.xml is that helps: <Server port="8005" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8010" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" /> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm"/> <Host name="localhost" debug="0" appBase="c:\work\xerox\clt\trunk\build\webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> Any ideas? Thanks, Ben --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]