It's not a secret anymore!
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: 17038
    
  26

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


An IDE is no substitute for an Intelligent Developer.
Samir Banerjee
Ranch Hand

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

Cheers.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can tomcat access logs(AccessLogValve) be rotated hourly?
 
jQuery in Action, 3rd edition