How to modify a logging format for Tomcat catalina.log logging file
Issue
- How do I modify a logging format for Tomcat
catalina.log
logging file? -
I specified the following in
/etc/tomcat6/logging.properties
for Tomcat 6.x in RHEL 6 but it does not work:java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL %4$s [%3$s] %5$s (%2$s) %6$s%n
Environment
- JBoss Web Server 2.x, 3.x
- RHEL 6
- Tomcat 6.x, 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.