Uses of Class
org.apache.log4j.Logger
Packages that use Logger
Package
Description
Log4j 1.x compatibility layer.
Log4j 1.x compatibility layer.
-
Uses of Logger in org.apache.log4j
Fields in org.apache.log4j declared as LoggerFields in org.apache.log4j with type parameters of type LoggerModifier and TypeFieldDescriptionprivate static final WeakHashMap<LoggerContext,
ConcurrentMap<String, Logger>> Hierarchy.CONTEXT_MAP
Methods in org.apache.log4j that return LoggerModifier and TypeMethodDescriptionstatic Logger
Deprecated.Tests if the named logger exists in the hierarchy.(package private) Logger
Hierarchy.exists
(String name, ClassLoader classLoader) (package private) Logger
Hierarchy.exists
(String name, LoggerContext loggerContext) static Logger
Tests if a logger for the given name exists.(package private) static Logger
LogManager.exists
(String name, ClassLoader classLoader) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name, Hierarchy.PrivateLoggerAdapter factory) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name, LoggerFactory factory) Gets a new logger instance named as the first parameter using the default factory.(package private) Logger
Hierarchy.getLogger
(String name, ClassLoader classLoader) Hierarchy.getLogger
(String name, LoggerFactory factory) Gets a new logger instance named as the first parameter usingfactory
.(package private) Logger
Hierarchy.getLogger
(String name, LoggerFactory factory, ClassLoader classLoader) static Logger
static Logger
static Logger
Logger.getLogger
(String name, LoggerFactory factory) static Logger
Gets the logger for the given class.static Logger
Gets the logger for the given name.(package private) static Logger
LogManager.getLogger
(String name, ClassLoader classLoader) static Logger
LogManager.getLogger
(String name, LoggerFactory factory) (package private) static Logger
LogManager.getLogger
(String name, LoggerFactory factory, ClassLoader classLoader) Hierarchy.getRootLogger()
Gets the root of this hierarchy.(package private) Logger
Hierarchy.getRootLogger
(ClassLoader classLoader) (package private) static Logger
Hierarchy.getRootLogger
(LoggerContext context) static Logger
Logger.getRootLogger()
static Logger
LogManager.getRootLogger()
Gets the root logger.(package private) static Logger
LogManager.getRootLogger
(ClassLoader classLoader) DefaultCategoryFactory.makeNewLoggerInstance
(String name) protected Logger
Hierarchy.PrivateLoggerAdapter.newLogger
(String name, LoggerContext context) Methods in org.apache.log4j that return types with arguments of type LoggerModifier and TypeMethodDescription(package private) static ConcurrentMap<String,
Logger> Hierarchy.getLoggersMap
(LoggerContext context) Methods in org.apache.log4j with parameters of type LoggerModifier and TypeMethodDescription(package private) void
PropertyConfigurator.parseAdditivityForLogger
(Properties properties, Logger logger, String loggerName) Parse the additivity option for a non-root category.(package private) void
PropertyConfigurator.parseCategory
(Properties properties, Logger logger, String optionKey, String loggerName, String value) This method must work for the root category as well.void
private final void
Hierarchy.updateChildren
(ProvisionNode pn, Logger logger) We update the links for all the children that placed themselves in the provision node 'pn'.private final void
Hierarchy.updateParents
(Logger cat) This method loops through all the *potential* parents of 'cat'.Constructors in org.apache.log4j with parameters of type LoggerModifierConstructorDescriptionCreates a new logger hierarchy.(package private)
ProvisionNode
(Logger logger) -
Uses of Logger in org.apache.log4j.spi
Subclasses of Logger in org.apache.log4j.spiModifier and TypeClassDescriptionfinal class
No-operation implementation of Logger used by NOPLoggerRepository.final class
RootLogger sits at the top of the logger hierarchy.Methods in org.apache.log4j.spi that return LoggerModifier and TypeMethodDescriptionLoggerRepository.getLogger
(String name, LoggerFactory factory) NOPLoggerRepository.getLogger
(String name, LoggerFactory factory) LoggerRepository.getRootLogger()
NOPLoggerRepository.getRootLogger()
LoggerFactory.makeNewLoggerInstance
(String name) Methods in org.apache.log4j.spi with parameters of type Logger -
Uses of Logger in org.apache.log4j.varia
Methods in org.apache.log4j.varia with parameters of type Logger
LogManager.exists(String)
instead.