Package org.apache.log4j
Class LogManager
java.lang.Object
org.apache.log4j.LogManager
This class is a minimal implementation of the original
org.apache.log4j.LogManager class (as found in log4j 1.2)
delegating all calls to SLF4J.
This implementation does NOT implement the setRepositorySelector(), getLoggerRepository(), exists(), getCurrentLoggers(), shutdown() and resetConfiguration() methods which do not have SLF4J equivalents.
- Author:
- Ceki Gülcü
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumerationThis bogus implementation returns an empty enumeration.static Loggerstatic Loggerstatic LoggergetLogger(String name, LoggerFactory loggerFactory) Returns a logger instance created by loggerFactory.static Loggerstatic voidImplemented as NOP.static voidshutdown()Implemented as NOP.
-
Constructor Details
-
LogManager
public LogManager()
-
-
Method Details
-
getRootLogger
-
getLogger
-
getLogger
-
getLogger
Returns a logger instance created by loggerFactory. This method was requested in SLF4J-225. Note that log4j-over-slf4j does not ship with a LoggerFactory implementation. If this method is called, the caller must provide his/her own implementation.- Parameters:
name- the name of the desired loggerloggerFactory- an instance ofLoggerFactory- Returns:
- returns a logger instance created by loggerFactory
- Since:
- 1.6.6
-
getCurrentLoggers
This bogus implementation returns an empty enumeration.- Returns:
- an Enumeration of current loggers
-
shutdown
Implemented as NOP. -
resetConfiguration
Implemented as NOP.
-