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.LoggerFactoryBinderThe binding ofLoggerFactoryclass with an actual instance ofILoggerFactoryis performed using information returned by this class.
-
-
Field Summary
Fields Modifier and Type Field Description private ContextSelectorStaticBindercontextSelectorBinderprivate LoggerContextdefaultLoggerContextprivate booleaninitializedprivate static java.lang.ObjectKEY(package private) static java.lang.StringNULL_CS_URLstatic java.lang.StringREQUESTED_API_VERSIONDeclare the version of the SLF4J API this implementation is compiled against.private static StaticLoggerBinderSINGLETONThe unique instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description privateStaticLoggerBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.ILoggerFactorygetLoggerFactory()java.lang.StringgetLoggerFactoryClassStr()static StaticLoggerBindergetSingleton()(package private) voidinit()Package access for testing purposes.(package private) static voidreset()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:
getLoggerFactoryin interfaceorg.slf4j.spi.LoggerFactoryBinder
-
getLoggerFactoryClassStr
public java.lang.String getLoggerFactoryClassStr()
- Specified by:
getLoggerFactoryClassStrin interfaceorg.slf4j.spi.LoggerFactoryBinder
-
-