• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can tomcat access logs(AccessLogValve) be rotated hourly?  RSS feed

 
Samir Banerjee
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Samir Banerjee
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Tim. Really bad I missed this simple thing .

Cheers.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!