Logging Configuration
You can use either Apache Log4j version 1.x or 2 for logging purposes.
To configure Log4j version 1.x, perform the following steps:
- In the 'loggerconfig.properties' file, add the following value for 'LOGGER_CLASS' property:
- LOGGER_CLASS = com.intellectdesign.canvas.logging.log4j1x.CanvasSLF4jLoggerImpl
- LOGGER_CLASS = com.intellectdesign.canvas.logging.log4j1x.CanvasSLF4jLoggerImpl
- Add the following JARs to your application WAR file:
- CTLogging-Log4j-1x.jar
- log4j-1.2.14.jar
To configure Log4j version 2, perform the following steps:
- In the 'loggerconfig.properties' file, add the following value for 'LOGGER_CLASS' property:
- LOGGER_CLASS=com.intellectdesign.canvas.logging.log4j2.CanvasLog4j2LoggerImpl
- Add the following JARs to your application WAR file:
- CTLogging-Log4j-2x.jar
- log4j-core-2.5.jar
- log4j-api-2.5.jar