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]

Reply via email to