How to configure log4j in RHEL 7 Tomcat
Issue
- My Tomcat instance is set up to use
log4j
but not creating any logs.I have copied/etc/tomcat/log4j.properties
to my tomcatcatalina_base/lib
directory. And configuredLOGGING_PROPERTIES
to point at thelog4j.properties
file. - How to configure
log4j
rather than default JULI for all Tomcat's internal logging in RHEL 7 tomcat.
Environment
- Red Hat Enterprise Linux (RHEL)
- 7.0
- 7.1
- 7.2
- Tomcat
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.