public final class SplitlogLoggerFactory extends Object
LOGGING_PROPERTY_NAME, is set to the value specified in
ON_STATE. Alternatively, you can force Splitlog to log by calling
enableLogging().
In order to avoid the aforementioned problem, it is imperative that every
SLF4J Logger is requested through getLogger(Class) or
getLogger(String). Otherwise, we are powerless and the app server
needs to be specifically configured to disregard Splitlog logging.| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGING_PROPERTY_NAME |
static String |
OFF_STATE |
static String |
ON_STATE |
| Constructor and Description |
|---|
SplitlogLoggerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enableLogging()
Force Splitlog's internal logging to be enabled.
|
static org.slf4j.Logger |
getLogger(Class<?> cls) |
static org.slf4j.Logger |
getLogger(String cls) |
static boolean |
isLoggingEnabled()
Whether or not Splitlog internals will log if logging is requested at
this time.
|
static void |
resetLoggingToDefaultState()
Whether or not Splitlog's internal messages are logged will depend on the
value of
LOGGING_PROPERTY_NAME system property at the time when
logging of the message is requested. |
static void |
silenceLogging()
Force Splitlog's internal logging to be disabled.
|
public static final String LOGGING_PROPERTY_NAME
public static final String OFF_STATE
public static final String ON_STATE
public static void enableLogging()
public static org.slf4j.Logger getLogger(Class<?> cls)
public static org.slf4j.Logger getLogger(String cls)
public static boolean isLoggingEnabled()
public static void resetLoggingToDefaultState()
LOGGING_PROPERTY_NAME system property at the time when
logging of the message is requested.public static void silenceLogging()
Copyright © 2014. All rights reserved.