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 of org.slf4j.LoggerFactory class with an actual instance of org.slf4j.ILoggerFactory is performed using information returned by this class.- Author:
- colezlaw
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REQUESTED_API_VERSION
Declare the version of the SLF4J API this implementation is compiled against.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.ILoggerFactory
getLoggerFactory()
Returns the logger factory.java.lang.String
getLoggerFactoryClassStr()
Returns the logger factory class string.static StaticLoggerBinder
getSingleton()
Return the singleton of this class.void
setTask(org.apache.tools.ant.Task task)
Set the Task which will this is to log through.
-
-
-
Method Detail
-
getSingleton
public static StaticLoggerBinder getSingleton()
Return the singleton of this class.- Returns:
- the StaticLoggerBinder singleton
-
setTask
public void setTask(org.apache.tools.ant.Task task)
Set the Task which will this is to log through.- Parameters:
task
- the task through which to log
-
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()
Returns the logger factory.- Specified by:
getLoggerFactory
in interfaceorg.slf4j.spi.LoggerFactoryBinder
- Returns:
- the logger factory
-
getLoggerFactoryClassStr
public java.lang.String getLoggerFactoryClassStr()
Returns the logger factory class string.- Specified by:
getLoggerFactoryClassStr
in interfaceorg.slf4j.spi.LoggerFactoryBinder
- Returns:
- the logger factory class string
-
-