You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Wallace <pw...@intelematics.com.au> on 2003/09/15 01:16:28 UTC
access log/s
Hello,
How may I configure Tomcat to output monthly, rather than daily
access log files?
Thanks
Paul.
Re: access log/s
Posted by Tim Funk <fu...@joedog.org>.
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.