tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: access log/s
Date Mon, 15 Sep 2003 00:44:06 GMT
Use a property called fileDateFormat. It is equal to something that gets 
passed to SimpleDateFormat().

For example to rotate each month ...
<Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="logs"  prefix="localhost_access_log." suffix=".txt"
          fileDateFormat="yyyy-MM"
          pattern="common" resolveHosts="false"/>

Or to rotate each hour ...
<Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="logs"  prefix="localhost_access_log." suffix=".txt"
          fileDateFormat="yyyy-MM-dd.HH"
          pattern="common" resolveHosts="false"/>


-Tim

Paul Wallace wrote:
> Hello,
>      How may I configure Tomcat to output monthly, rather than daily
> access log files?
> 
> Thanks
> 
> Paul.


Mime
View raw message