How to configure log4j rather than default JULI for all Tomcat's internal logging in RHEL7 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 RHEL7 tomcat.

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.0
    • 7.1
  • Tomcat 7.0.54

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.