wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Can tomcat access logs(AccessLogValve) be rotated hourly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can tomcat access logs(AccessLogValve) be rotated hourly?" Watch "Can tomcat access logs(AccessLogValve) be rotated hourly?" New topic
Author

Can tomcat access logs(AccessLogValve) be rotated hourly?

Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Is there any option that can enable tomcat access log rotation to hourly format instead of daily. Below is what I am using



Thanks in advance!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Take a closer lok at the "fileDateFormat" attribute in the documentation. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve


Customer surveys are for companies who didn't pay proper attention to begin with.
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Thanks a lot Tim. Really bad I missed this simple thing .

Cheers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can tomcat access logs(AccessLogValve) be rotated hourly?