public final class BridgeHandlerInstaller extends Object implements javax.servlet.ServletContainerInitializer
SLF4JBridgeHandler upon start of the
servlet container in order to redirect JDK logging to slf4j. Additionally,
this class will modify the JDK's root logger's log level in order to redirect
messages of any severity to slf4j. You can specify this level using the
system property "de.skuzzle.slf4j.jdkLogLevel".
Please refer to the slf4j documentation in order to understand the implications of redirecting the JDK log to slf4j.
JDK_LOG_LEVEL| Modifier and Type | Field and Description |
|---|---|
static String |
JDK_LOG_LEVEL
System property for specifying the log level to which the JDK root logger
will be set.
|
| Constructor and Description |
|---|
BridgeHandlerInstaller()
Deprecated.
Do not instantiate this class manually.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onStartup(Set<Class<?>> c,
javax.servlet.ServletContext ctx)
Installs the bridge handler and sets the log level of the root logger.
|
public static final String JDK_LOG_LEVEL
Level.ALL which will cause every single log message to be
redirected to slf4j.@Deprecated public BridgeHandlerInstaller()
public final void onStartup(Set<Class<?>> c, javax.servlet.ServletContext ctx) throws javax.servlet.ServletException
onStartup in interface javax.servlet.ServletContainerInitializerjavax.servlet.ServletExceptionCopyright © 2014–2015. All rights reserved.