Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My predecessor set up Tomcat 6 on a RHEL5 server and it's logging to /var/log/tomcat and creating log files like catalina.2012-11-28.log (catalina.date.log) - how do I change the log format from date to catalina.1.log, catalina.2.log, etc.? The server.xml does not contain any references to logging, the only place I see is in logging.properties. How do I change the behaviour of Tomcat's logging?

share|improve this question

Have a look of the documentation of the FileHandler : http://docs.oracle.com/javase/6/docs/api/java/util/logging/FileHandler.html

There is possible to specify a generation number with the parameter "%g" in the file ${catalina}/conf/logging.properties.

example :

1catalina.java.util.logging.FileHandler.pattern = ${catalina.base}/logs/catalina.%g.log

See also : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2014609

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.