A utility to safely install the slf4j-apiSLF4JBridgeHandler.
The utility attempts to detect if the slf4j-jdk14 dependency is present on
the classpath as it is unwise to install the jul-to-slf4j bridge with the slf4j-jdk14
dependency present as it may cause an infinite loop.
If the SLF4JBridgeHandler is already installed we do not try to install
it again.
Additionally note there is a performance impact for bridging jul log messages in this
manner. However, using the Logback LevelChangePropagator
(> 0.9.25) can eliminate this performance impact.
A utility to safely install the slf4j-api SLF4JBridgeHandler. The utility attempts to detect if the
slf4j-jdk14
dependency is present on the classpath as it is unwise to install thejul-to-slf4j
bridge with theslf4j-jdk14
dependency present as it may cause an infinite loop.If the SLF4JBridgeHandler is already installed we do not try to install it again.
Additionally note there is a performance impact for bridging jul log messages in this manner. However, using the Logback LevelChangePropagator (> 0.9.25) can eliminate this performance impact.
SLF4J: jul-to-slf4j bridge