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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content