Package org.slf4j.impl
Class StaticLoggerBinder
java.lang.Object
org.slf4j.impl.StaticLoggerBinder
- All Implemented Interfaces:
org.slf4j.spi.LoggerFactoryBinder
SLF4J LoggerFactoryBinder implementation using Log4j. This class is part of the required classes used to specify an
SLF4J logger provider implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final org.slf4j.ILoggerFactoryThe ILoggerFactory instance returned by thegetLoggerFactory()method should always be the same objectstatic StringDeclare the version of the SLF4J API this implementation is compiled against.private static final StaticLoggerBinderThe unique instance of this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor to prevent instantiation -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.ILoggerFactoryReturns the factory.Returns the class name.static StaticLoggerBinderReturns the singleton of this class.
-
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. -
LOGGER_FACTORY_CLASS_STR
-
SINGLETON
The unique instance of this class. -
loggerFactory
private final org.slf4j.ILoggerFactory loggerFactoryThe ILoggerFactory instance returned by thegetLoggerFactory()method should always be the same object
-
-
Constructor Details
-
StaticLoggerBinder
private StaticLoggerBinder()Private constructor to prevent instantiation
-
-
Method Details
-
getSingleton
Returns the singleton of this class.- Returns:
- the StaticLoggerBinder singleton
-
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()Returns the factory.- Specified by:
getLoggerFactoryin interfaceorg.slf4j.spi.LoggerFactoryBinder- Returns:
- the factor.
-
getLoggerFactoryClassStr
Returns the class name.- Specified by:
getLoggerFactoryClassStrin interfaceorg.slf4j.spi.LoggerFactoryBinder- Returns:
- the class name;
-