Package | Description |
---|---|
org.apache.log4j |
Log4j 1.x compatibility layer.
|
org.apache.log4j.spi |
Log4j 1.x compatibility layer.
|
org.apache.log4j.varia |
Modifier and Type | Method and Description |
---|---|
static Logger |
LogManager.exists(String name)
Tests if a logger for the given name exists.
|
static Logger |
Category.exists(String name)
Deprecated.
Please use
LogManager.exists(String) instead. |
Logger |
Hierarchy.exists(String name)
Tests if the named logger exists in the hierarchy.
|
static Logger |
LogManager.getLogger(Class<?> clazz)
Gets the logger for the given class.
|
static Logger |
Logger.getLogger(Class<?> clazz) |
static Logger |
LogManager.getLogger(String name)
Gets the logger for the given name.
|
Logger |
Hierarchy.getLogger(String name)
Gets a new logger instance named as the first parameter using the default factory.
|
static Logger |
Logger.getLogger(String name) |
static Logger |
LogManager.getLogger(String name,
LoggerFactory factory) |
Logger |
Hierarchy.getLogger(String name,
LoggerFactory factory)
Gets a new logger instance named as the first parameter using
factory . |
static Logger |
Logger.getLogger(String name,
LoggerFactory factory) |
static Logger |
LogManager.getRootLogger()
Gets the root logger.
|
Logger |
Hierarchy.getRootLogger()
Gets the root of this hierarchy.
|
static Logger |
Logger.getRootLogger() |
Modifier and Type | Method and Description |
---|---|
void |
AppenderSkeleton.NoOpErrorHandler.setLogger(Logger logger) |
Constructor and Description |
---|
Hierarchy(Logger root)
Creates a new logger hierarchy.
|
Modifier and Type | Class and Description |
---|---|
class |
NOPLogger
No-operation implementation of Logger used by NOPLoggerRepository.
|
class |
RootLogger
RootLogger sits at the top of the logger hierarchy.
|
Modifier and Type | Method and Description |
---|---|
Logger |
NOPLoggerRepository.exists(String name) |
Logger |
LoggerRepository.exists(String name) |
Logger |
NOPLoggerRepository.getLogger(String name) |
Logger |
LoggerRepository.getLogger(String name) |
Logger |
NOPLoggerRepository.getLogger(String name,
LoggerFactory factory) |
Logger |
LoggerRepository.getLogger(String name,
LoggerFactory factory) |
Logger |
NOPLoggerRepository.getRootLogger() |
Logger |
LoggerRepository.getRootLogger() |
Logger |
LoggerFactory.makeNewLoggerInstance(String name) |
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandler.setLogger(Logger logger)
Add a reference to a logger to which the failing appender might
be attached to.
|
Modifier and Type | Method and Description |
---|---|
void |
FallbackErrorHandler.setLogger(Logger logger)
Adds the logger passed as parameter to the list of loggers that we need to search for in case of appender
failure.
|
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.