26.6 Using the Apache Log4j Service to Log Sign-on and Password Events

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:

  1. Download the “JULI” files for Tomcat v7.0.55 from the Apache website:

    • tomcat-juli.jar

    • tomcat-juli-adapters.jar

  2. Download the log4j-1.2.16.jar file from the Apache website.

  3. Place the following files in the $TOMCAT_HOME/lib directory:

    • log4j-1.2.16.jar

    • tomcat-juli-adapters.jar

  4. Place the tomcat-juli.jar file in the $TOMCAT_HOME/bin directory.

  5. Specify a value for -Dlog4j.configuration in CATALINA_OPTS or create a log4j.properties file in the $TOMCAT_HOME/lib directory.