Uses of Interface
org.apache.logging.log4j.Logger
Packages that use Logger
Package
Description
Public API for Log4j 2.
Simple logging implementation.
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
Status API for Log4j 2.
Internal utility classes for the Log4j 2 API.
-
Uses of Logger in org.apache.logging.log4j
Methods in org.apache.logging.log4j that return LoggerModifier and TypeMethodDescriptionstatic Logger
LogManager.getFormatterLogger()
Returns a formatter Logger using the fully qualified name of the calling Class as the Logger name.static Logger
LogManager.getFormatterLogger
(Class<?> clazz) Returns a formatter Logger using the fully qualified name of the Class as the Logger name.static Logger
LogManager.getFormatterLogger
(Object value) Returns a formatter Logger using the fully qualified name of the value's Class as the Logger name.static Logger
LogManager.getFormatterLogger
(String name) Returns a formatter Logger with the specified name.static Logger
LogManager.getLogger()
Returns a Logger with the name of the calling class.static Logger
Returns a Logger using the fully qualified name of the Class as the Logger name.static Logger
LogManager.getLogger
(Class<?> clazz, MessageFactory messageFactory) Returns a Logger using the fully qualified name of the Class as the Logger name.static Logger
Returns a Logger using the fully qualified class name of the value as the Logger name.static Logger
LogManager.getLogger
(Object value, MessageFactory messageFactory) Returns a Logger using the fully qualified class name of the value as the Logger name.static Logger
Returns a Logger with the specified name.protected static Logger
Returns a Logger with the specified name.static Logger
LogManager.getLogger
(String name, MessageFactory messageFactory) Returns a Logger with the specified name.static Logger
LogManager.getLogger
(MessageFactory messageFactory) Returns a Logger with the name of the calling class.static Logger
LogManager.getRootLogger()
Returns the root logger. -
Uses of Logger in org.apache.logging.log4j.simple
Classes in org.apache.logging.log4j.simple that implement LoggerModifier and TypeClassDescriptionclass
This is the default logger that is used when no suitable logging implementation is available. -
Uses of Logger in org.apache.logging.log4j.spi
Subinterfaces of Logger in org.apache.logging.log4j.spiModifier and TypeInterfaceDescriptioninterface
Extends theLogger
interface with methods that facilitate implementing or extendingLogger
s.Classes in org.apache.logging.log4j.spi that implement LoggerModifier and TypeClassDescriptionclass
Base implementation of a Logger.class
Wrapper class that exposes the protected AbstractLogger methods to support wrapped loggers.Methods in org.apache.logging.log4j.spi that return types with arguments of type LoggerModifier and TypeMethodDescriptiondefault LoggerRegistry<? extends Logger>
LoggerContext.getLoggerRegistry()
Gets the LoggerRegistry. -
Uses of Logger in org.apache.logging.log4j.status
Classes in org.apache.logging.log4j.status that implement LoggerModifier and TypeClassDescriptionclass
Records events that occur in the logging system. -
Uses of Logger in org.apache.logging.log4j.util
Methods in org.apache.logging.log4j.util with parameters of type LoggerModifier and TypeMethodDescriptionstatic <S> Stream<S>
ServiceLoaderUtil.safeStream
(Class<S> serviceType, ServiceLoader<? extends S> serviceLoader, Logger logger) Retrieves services registered withServiceLoader