You can use either the Apache Log4j or java.util.logging service to record events that occur in Tomcat. The Tomcat installer in the Identity Manager installation kit includes the files that you need for Log4j. However, if you install your own version of Tomcat, you need the following files to use the Apache logging service:
log4j-1.2.16.jar
tomcat-juli-adapters.jar
tomcat-juli.jar
To add the files to your Tomcat installation, complete the following steps:
Download the “JULI” files for Tomcat v8.5.x from the Apache website:
tomcat-juli.jar
tomcat-juli-adapters.jar
Download the log4j-1.2.16.jar file from the Apache website.
Place the following files in the $TOMCAT_HOME/lib directory:
log4j-1.2.16.jar
tomcat-juli-adapters.jar
Place the tomcat-juli.jar file in the $TOMCAT_HOME/bin directory.
Specify a value for -Dlog4j.configuration in CATALINA_OPTS or create a log4j.properties file in the $TOMCAT_HOME/lib directory.