public class CentralSlf4jProvider
extends java.lang.Object
implements org.slf4j.spi.SLF4JServiceProvider
| Modifier and Type | Field and Description |
|---|---|
private static CentralSlf4jLoggerFactory |
loggerFactory
The custom logger factory.
|
private static org.slf4j.IMarkerFactory |
markerFactory
The default base marker factory.
|
private static org.slf4j.spi.MDCAdapter |
mdcAdapter
The default base mdc adapter.
|
static java.lang.String |
REQUESTED_API_VERSION
The lowest compatible api version.
|
| Constructor and Description |
|---|
CentralSlf4jProvider()
Public constructor, allows preventing instantiation of the provider.
|
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.ILoggerFactory |
getLoggerFactory()
Returns the logger factory instance.
|
org.slf4j.IMarkerFactory |
getMarkerFactory()
Return the marker factory instance.
|
org.slf4j.spi.MDCAdapter |
getMDCAdapter()
Returns the mdc adapter instance.
|
java.lang.String |
getRequestedApiVersion()
Returns the lowest compatible api version.
|
void |
initialize()
Initialization of all factories and adapters needed.
|
private static final CentralSlf4jLoggerFactory loggerFactory
private static org.slf4j.IMarkerFactory markerFactory
private static org.slf4j.spi.MDCAdapter mdcAdapter
public static java.lang.String REQUESTED_API_VERSION
To avoid constant folding by the compiler, this field must *not* be final
public CentralSlf4jProvider()
public org.slf4j.ILoggerFactory getLoggerFactory()
getLoggerFactory in interface org.slf4j.spi.SLF4JServiceProviderpublic org.slf4j.IMarkerFactory getMarkerFactory()
getMarkerFactory in interface org.slf4j.spi.SLF4JServiceProviderpublic org.slf4j.spi.MDCAdapter getMDCAdapter()
getMDCAdapter in interface org.slf4j.spi.SLF4JServiceProviderpublic java.lang.String getRequestedApiVersion()
getRequestedApiVersion in interface org.slf4j.spi.SLF4JServiceProviderpublic void initialize()
initialize in interface org.slf4j.spi.SLF4JServiceProvider