tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan de Bravo" <juan.debr...@mad.tecsidel.es>
Subject RE: Access log
Date Thu, 26 Feb 2004 14:25:04 GMT
Thank you Tim for your answer.

Juan.

-----Mensaje original-----
De: Tim Funk [mailto:funkman@joedog.org]
Enviado el: jueves, 26 de febrero de 2004 13:40
Para: Tomcat Users List
Asunto: Re: Access log


There is a property called fileDateFormat which takes a date format per
SimpleDateFormat. So you can do things as crazy as log every second or
rotate
by month.

<Valve className="org.apache.catalina.valves.AccessLogValve"
        directory="logs"  prefix="localhost_access_log." suffix=".txt"
        fileDateFormat="hh 'o''clock' a, zzzz"
        pattern="common"/>

Would create log files similar to:
localhost_access_log.12 o'clock PM, Pacific Daylight Time.txt

-Tim

Juan de Bravo wrote:
> Hi,
>
> Is it possible to configure access log to create a file in a different
> period that daily??
>
> For example each week or in groups of three days...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message