Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
org.apache.log4j.xml |
XML based components.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DefaultCategoryFactory |
Modifier and Type | Field and Description |
---|---|
private LoggerFactory |
Hierarchy.defaultFactory |
protected LoggerFactory |
PropertyConfigurator.loggerFactory |
Modifier and Type | Method and Description |
---|---|
Logger |
Hierarchy.getLogger(java.lang.String name,
LoggerFactory factory)
Return a new logger instance named as the first parameter using
factory . |
static Logger |
LogManager.getLogger(java.lang.String name,
LoggerFactory factory)
Retrieve the appropriate
Logger instance. |
static Logger |
Logger.getLogger(java.lang.String name,
LoggerFactory factory)
Like
Logger.getLogger(String) except that the type of logger
instantiated depends on the type returned by the makeNewLoggerInstance(java.lang.String) method of the
factory parameter. |
Modifier and Type | Method and Description |
---|---|
Logger |
LoggerRepository.getLogger(java.lang.String name,
LoggerFactory factory) |
Logger |
NOPLoggerRepository.getLogger(java.lang.String name,
LoggerFactory factory) |
Modifier and Type | Field and Description |
---|---|
protected LoggerFactory |
DOMConfigurator.catFactory |