Package org.slf4j.impl
Class StaticLoggerBinder
- java.lang.Object
-
- org.slf4j.impl.StaticLoggerBinder
-
- All Implemented Interfaces:
org.slf4j.spi.LoggerFactoryBinder
public final class StaticLoggerBinder extends java.lang.Object implements org.slf4j.spi.LoggerFactoryBinderSLF4J LoggerFactoryBinder implementation using MavenSimpleLogger. This class is part of the required classes used to specify an SLF4J logger provider implementation.- Since:
- 3.5.1
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringLOGGER_FACTORY_CLASS_STRprivate org.slf4j.ILoggerFactoryloggerFactoryThe ILoggerFactory instance returned by thegetLoggerFactory()method should always be the same objectstatic 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()Private constructor to prevent instantiation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.ILoggerFactorygetLoggerFactory()Returns the factory.java.lang.StringgetLoggerFactoryClassStr()Returns the class name.static StaticLoggerBindergetSingleton()Returns the singleton of this class.
-
-
-
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.
-
LOGGER_FACTORY_CLASS_STR
private static final java.lang.String LOGGER_FACTORY_CLASS_STR
-
SINGLETON
private static final StaticLoggerBinder SINGLETON
The unique instance of this class.
-
loggerFactory
private final org.slf4j.ILoggerFactory loggerFactory
The ILoggerFactory instance returned by thegetLoggerFactory()method should always be the same object
-
-
Method Detail
-
getSingleton
public static StaticLoggerBinder getSingleton()
Returns the singleton of this class.
-
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()
Returns the factory.- Specified by:
getLoggerFactoryin interfaceorg.slf4j.spi.LoggerFactoryBinder
-
getLoggerFactoryClassStr
public java.lang.String getLoggerFactoryClassStr()
Returns the class name.- Specified by:
getLoggerFactoryClassStrin interfaceorg.slf4j.spi.LoggerFactoryBinder
-
-