Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

  • Copy Tomcat_Complete.zip/apache-tomcat-flexdeploy/bin/FDLogFormatter.jar to <Tomcat Home>/bin folder.
  • For Windows
    • Update <Tomcat Home>/bin/setenv.bat file, add following on first line.

      Code Block
      languagepowershell
      themeRDark
      set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\FDLogFormatter.jar


  • For Linux
    • Update <Tomcat Home/bin/setenv.sh file, add following on first line.

      Code Block
      languagebash
      themeRDark
      export CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/FDLogFormatter.jar


  • Copy Tomcat_Complete.zip/apache-tomcat-flexdeploy/conf/logging.properties file to <Tomcat Home>/conf folder. You should take back up of existing logging.properties file. This is configured to have 10 backups each 10MB, you can adjust it as appropriate.