Package org.slf4j.impl
Class StaticLoggerBinder
java.lang.Object
org.slf4j.impl.StaticLoggerBinder
- All Implemented Interfaces:
org.slf4j.spi.LoggerFactoryBinder
The binding of
LoggerFactory
class with an actual instance of
ILoggerFactory
is performed using information returned by this class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextSelectorStaticBinder
private LoggerContext
private boolean
private static Object
(package private) static final String
static String
Declare the version of the SLF4J API this implementation is compiled against.private static StaticLoggerBinder
The unique instance of this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.ILoggerFactory
static StaticLoggerBinder
(package private) void
init()
Package access for testing purposes.(package private) static void
reset()
Package access for testing purposes.
-
Field Details
-
REQUESTED_API_VERSION
Declare the version of the SLF4J API this implementation is compiled against. The value of this field is usually modified with each release. -
NULL_CS_URL
- See Also:
-
SINGLETON
The unique instance of this class. -
KEY
-
initialized
private boolean initialized -
defaultLoggerContext
-
contextSelectorBinder
-
-
Constructor Details
-
StaticLoggerBinder
private StaticLoggerBinder()
-
-
Method Details
-
getSingleton
-
reset
static void reset()Package access for testing purposes. -
init
void init()Package access for testing purposes. -
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()- Specified by:
getLoggerFactory
in interfaceorg.slf4j.spi.LoggerFactoryBinder
-
getLoggerFactoryClassStr
- Specified by:
getLoggerFactoryClassStr
in interfaceorg.slf4j.spi.LoggerFactoryBinder
-