Package org.slf4j.impl
Class StaticLoggerBinder
- java.lang.Object
-
- org.slf4j.impl.StaticLoggerBinder
-
- All Implemented Interfaces:
org.slf4j.spi.LoggerFactoryBinder
public class StaticLoggerBinder extends java.lang.Object implements org.slf4j.spi.LoggerFactoryBinder
The binding ofLoggerFactory
class with an actual instance ofILoggerFactory
is performed using information returned by this class.
-
-
Field Summary
Fields Modifier and Type Field Description private ContextSelectorStaticBinder
contextSelectorBinder
private LoggerContext
defaultLoggerContext
private boolean
initialized
private static java.lang.Object
KEY
(package private) static java.lang.String
NULL_CS_URL
static java.lang.String
REQUESTED_API_VERSION
Declare the version of the SLF4J API this implementation is compiled against.private static StaticLoggerBinder
SINGLETON
The unique instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticLoggerBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.ILoggerFactory
getLoggerFactory()
java.lang.String
getLoggerFactoryClassStr()
static StaticLoggerBinder
getSingleton()
(package private) void
init()
Package access for testing purposes.(package private) static void
reset()
Package access for testing purposes.
-
-
-
Field Detail
-
REQUESTED_API_VERSION
public static java.lang.String 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
static final java.lang.String NULL_CS_URL
- See Also:
- Constant Field Values
-
SINGLETON
private static StaticLoggerBinder SINGLETON
The unique instance of this class.
-
KEY
private static java.lang.Object KEY
-
initialized
private boolean initialized
-
defaultLoggerContext
private LoggerContext defaultLoggerContext
-
contextSelectorBinder
private final ContextSelectorStaticBinder contextSelectorBinder
-
-
Method Detail
-
getSingleton
public static StaticLoggerBinder 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
public java.lang.String getLoggerFactoryClassStr()
- Specified by:
getLoggerFactoryClassStr
in interfaceorg.slf4j.spi.LoggerFactoryBinder
-
-