Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    configuring Tomcat to use log4j2 for catalina and application logs

    Hello, in my applications, I always log using the com.isomorphic.log.Logger class. The JVM is started with the following parameters:

    -DiscUseSlf4j=true
    -DiscUseLog4jConfig=false

    Additionally, I have a log4j2.xml file per application, as it is the logging system I'm using.
    Now, I attempted to configure Tomcat to use log4j2 for its catalina and other log files.
    However, I encountered an issue where the applications' log4j2.xml files are being ignored, and the application logs are appearing in the catalina.out file.

    I am wondering if there are any changes I need to make in my applications to resolve this issue.

    Any hints or suggestions would be greatly appreciated.

Working...
X