How to configure log4j in RHEL 7 Tomcat

Solution Verified - Updated -

Issue

  • My Tomcat instance is set up to use log4j but not creating any logs.I have copied /etc/tomcat/log4j.properties to my tomcat catalina_base/lib directory. And configured LOGGING_PROPERTIES to point at the log4j.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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In