Tomcat Logging Setup

Follow these steps to implement custom format for FlexDeploy logs in Tomcat. All necessary files should be available in

  • Copy to <Tomcat Home>/bin folder.
  • For Windows
    • Update <Tomcat Home>/bin/setenv.bat file, add following on first line.

      set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\FDLogFormatter.jar
  • For Linux
    • Update <Tomcat Home/bin/ file, add following on first line.

      export CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/FDLogFormatter.jar
  • Copy file to <Tomcat Home>/conf folder. You should take back up of existing file. This is configured to have 10 backups each 10MB, you can adjust it as appropriate.