Configuring logging on the Diffusion server
Your Diffusion™ installation provides a default logging framework and the log4j2 logging framework. Configure the Diffusion server to use your preferred framework.
The Diffusion server uses the JAR file located at lib/slf4j-binding.jar as its logging framework. When you first install your Diffusion server, the logging framework used is the Diffusion default logging.
Use log4j2
The log4j-slf4j-impl-version.jar file controls the log4j2 logging. This file is included in the Diffusion installation in the lib/thirdparty directory.
To use log4j2 instead of the default Diffusion logging implementation, copy lib/thirdparty/log4j-slf4j-impl-version.jar to lib/slf4j-binding.jar.
Configure the log4j2 logging framework with the log4j2.xml configuration file.
Use the default logging
To revert to the standard Diffusion logging implementation, copy lib/diffusion-slf4j-binding.jar to lib/slf4j-binding.jar.
Configure the default logging framework with the Logs.xml configuration file.
Use another SLF4J implementation
To use an alternative SLF4J implementation, remove the lib/slf4j-binding.jar and add the appropriate classes for the alternative implementation to the Diffusion server classpath.
This page last modified: 2018/04/06