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 LoggerCategory. exists(String name)Deprecated.Please useLogManager.exists(String)instead.LoggerHierarchy. exists(String name)Tests if the named logger exists in the hierarchy.static LoggerLogManager. exists(String name)Tests if a logger for the given name exists.LoggerHierarchy. getLogger(String name)Gets a new logger instance named as the first parameter using the default factory.LoggerHierarchy. getLogger(String name, LoggerFactory factory)Gets a new logger instance named as the first parameter usingfactory.static LoggerLogger. getLogger(Class<?> clazz)static LoggerLogger. getLogger(String name)static LoggerLogger. getLogger(String name, LoggerFactory factory)static LoggerLogManager. getLogger(Class<?> clazz)Gets the logger for the given class.static LoggerLogManager. getLogger(String name)Gets the logger for the given name.static LoggerLogManager. getLogger(String name, LoggerFactory factory)LoggerHierarchy. getRootLogger()Gets the root of this hierarchy.static LoggerLogger. getRootLogger()static LoggerLogManager. getRootLogger()Gets the root logger.Methods in org.apache.log4j with parameters of type Logger Modifier and Type Method Description voidAppenderSkeleton.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 classNOPLoggerNo-operation implementation of Logger used by NOPLoggerRepository.classRootLoggerRootLogger sits at the top of the logger hierarchy.Methods in org.apache.log4j.spi that return Logger Modifier and Type Method Description LoggerLoggerRepository. exists(String name)LoggerNOPLoggerRepository. exists(String name)LoggerLoggerRepository. getLogger(String name)LoggerLoggerRepository. getLogger(String name, LoggerFactory factory)LoggerNOPLoggerRepository. getLogger(String name)LoggerNOPLoggerRepository. getLogger(String name, LoggerFactory factory)LoggerLoggerRepository. getRootLogger()LoggerNOPLoggerRepository. getRootLogger()LoggerLoggerFactory. makeNewLoggerInstance(String name)Methods in org.apache.log4j.spi with parameters of type Logger Modifier and Type Method Description voidErrorHandler. 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 voidFallbackErrorHandler. 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.
-