| Package | Description |
|---|---|
| org.apache.log4j |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
LogManager.exists(String name) |
Logger |
Hierarchy.exists(String name)
Check if the named logger exists in the hierarchy.
|
static Logger |
Category.exists(String name)
Deprecated.
Please use
LogManager.exists(java.lang.String) instead. |
static Logger |
Logger.getLogger(Class clazz)
Shorthand for
getLogger(clazz.getName()). |
static Logger |
LogManager.getLogger(Class clazz)
Retrieve the appropriate
Logger instance. |
static Logger |
Logger.getLogger(String name)
Retrieve a logger named according to the value of the
name parameter. |
static Logger |
LogManager.getLogger(String name)
Retrieve the appropriate
Logger instance. |
Logger |
Hierarchy.getLogger(String name)
Return a new logger instance named as the first parameter using
the default factory.
|
static Logger |
Logger.getLogger(String name,
org.apache.log4j.spi.LoggerFactory factory)
Like
getLogger(String) except that the type of logger
instantiated depends on the type returned by the LoggerFactory.makeNewLoggerInstance(java.lang.String) method of the
factory parameter. |
static Logger |
LogManager.getLogger(String name,
org.apache.log4j.spi.LoggerFactory factory)
Retrieve the appropriate
Logger instance. |
Logger |
Hierarchy.getLogger(String name,
org.apache.log4j.spi.LoggerFactory factory)
Return a new logger instance named as the first parameter using
factory. |
static Logger |
Logger.getRootLogger()
Return the root logger for the current logger repository.
|
static Logger |
LogManager.getRootLogger()
Retrieve the appropriate root logger.
|
Logger |
Hierarchy.getRootLogger()
Get the root of this hierarchy.
|
| Constructor and Description |
|---|
Hierarchy(Logger root)
Create a new logger hierarchy.
|
Copyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.