Uses of Class
org.apache.log4j.Logger
-
Packages that use Logger Package Description org.apache.log4j Log4j 1.x compatibility layer.org.apache.log4j.spi Log4j 1.x compatibility layer.org.apache.log4j.varia -
-
Uses of Logger in org.apache.log4j
Methods in org.apache.log4j that return Logger Modifier and Type Method Description static Logger
Category. exists(String name)
Deprecated.Please useLogManager.exists(String)
instead.Logger
Hierarchy. exists(String name)
Tests if the named logger exists in the hierarchy.static Logger
LogManager. exists(String name)
Tests if a logger for the given name exists.Logger
Hierarchy. getLogger(String name)
Gets a new logger instance named as the first parameter using the default factory.Logger
Hierarchy. getLogger(String name, LoggerFactory factory)
Gets a new logger instance named as the first parameter usingfactory
.static Logger
Logger. getLogger(Class<?> clazz)
static Logger
Logger. getLogger(String name)
static Logger
Logger. getLogger(String name, LoggerFactory factory)
static Logger
LogManager. getLogger(Class<?> clazz)
Gets the logger for the given class.static Logger
LogManager. getLogger(String name)
Gets the logger for the given name.static Logger
LogManager. getLogger(String name, LoggerFactory factory)
Logger
Hierarchy. getRootLogger()
Gets the root of this hierarchy.static Logger
Logger. getRootLogger()
static Logger
LogManager. getRootLogger()
Gets the root logger.Methods in org.apache.log4j with parameters of type Logger Modifier and Type Method Description void
AppenderSkeleton.NoOpErrorHandler. setLogger(Logger logger)
Constructors in org.apache.log4j with parameters of type Logger Constructor Description Hierarchy(Logger root)
Creates a new logger hierarchy. -
Uses of Logger in org.apache.log4j.spi
Subclasses of Logger in org.apache.log4j.spi Modifier and Type Class Description class
NOPLogger
No-operation implementation of Logger used by NOPLoggerRepository.class
RootLogger
RootLogger sits at the top of the logger hierarchy.Methods in org.apache.log4j.spi that return Logger Modifier and Type Method Description Logger
LoggerRepository. exists(String name)
Logger
NOPLoggerRepository. exists(String name)
Logger
LoggerRepository. getLogger(String name)
Logger
LoggerRepository. getLogger(String name, LoggerFactory factory)
Logger
NOPLoggerRepository. getLogger(String name)
Logger
NOPLoggerRepository. getLogger(String name, LoggerFactory factory)
Logger
LoggerRepository. getRootLogger()
Logger
NOPLoggerRepository. getRootLogger()
Logger
LoggerFactory. makeNewLoggerInstance(String name)
Methods in org.apache.log4j.spi with parameters of type Logger Modifier and Type Method Description void
ErrorHandler. setLogger(Logger logger)
Add a reference to a logger to which the failing appender might be attached to. -
Uses of Logger in org.apache.log4j.varia
Methods in org.apache.log4j.varia with parameters of type Logger Modifier and Type Method 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.
-