Home » SLF4J-1.5.8 » org » slf4j » [javadoc | source]
org.slf4j
public final class: LoggerFactory [javadoc | source]
java.lang.Object
   org.slf4j.LoggerFactory
The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for log4j, logback and JDK 1.4 logging. Other implementations such as NOPLogger and SimpleLogger are also supported.

LoggerFactory is essentially a wrapper around an ILoggerFactory instance bound with LoggerFactory at compile time.

Please note that all methods in LoggerFactory are static.

Field Summary
static final  String NO_STATICLOGGERBINDER_URL     
static final  String MULTIPLE_BINDINGS_URL     
static final  String NULL_LF_URL     
static final  String VERSION_MISMATCH     
static final  String SUBSTITUTE_LOGGER_URL     
static final  String UNSUCCESSFUL_INIT_URL     
static final  String UNSUCCESSFUL_INIT_MSG     
static final  int UNINITIALIZED     
static final  int ONGOING_INITILIZATION     
static final  int FAILED_INITILIZATION     
static final  int SUCCESSFUL_INITILIZATION     
static final  int GET_SINGLETON_INEXISTENT     
static final  int GET_SINGLETON_EXISTS     
static  int INITIALIZATION_STATE     
static  int GET_SINGLETON_METHOD     
static  SubstituteLoggerFactory TEMP_FACTORY     
Method from org.slf4j.LoggerFactory Summary:
getILoggerFactory,   getLogger,   getLogger,   reset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.slf4j.LoggerFactory Detail:
 public static ILoggerFactory getILoggerFactory() 
    Return the ILoggerFactory instance in use.

    ILoggerFactory instance is bound with this class at compile time.

 public static Logger getLogger(String name) 
    Return a logger named according to the name parameter using the statically bound ILoggerFactory instance.
 public static Logger getLogger(Class clazz) 
    Return a logger named corresponding to the class passed as parameter, using the statically bound ILoggerFactory instance.
 static  void reset() 
    Force LoggerFactory to consider itself uninitialized.

    This method is intended to be called by classes (in the same package) for testing purposes. This method is internal. It can be modified, renamed or removed at any time without notice.

    You are strongly discouraged from calling this method in production code.