Module org.apache.logging.log4j
Package org.apache.logging.log4j.spi
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
-
Interface Summary Interface Description CleanableThreadContextMap Deprecated. useThreadContextMap
directlyCopyOnWrite Marker interface indicating that the implementing class is a copy-on-write data structure.ExtendedLogger Extends theLogger
interface with methods that facilitate implementing or extendingLogger
s.LoggerAdapter<L> A basic registry forLoggerContext
objects and their associated external Logger classes.LoggerContext Anchor point for logging implementations.LoggerContextFactory Implemented by factories that createLoggerContext
objects.LoggerContextShutdownAware Interface allowing interested classes to know when a LoggerContext has shutdown - if the LoggerContext implementation provides a way to register listeners.LoggerContextShutdownEnabled LoggerContexts implementing this are able register LoggerContextShutdownAware classes.LoggerRegistry.MapFactory<T extends ExtendedLogger> Interface to control the data structure used by the registry to store the Loggers.ObjectThreadContextMap Deprecated. useThreadContextMap
directlyReadOnlyThreadContextMap Read-only view of the data structure that implements MDC behavior forThreadContext
.Terminable Interface to be implemented by LoggerContext's that provide a shutdown method.ThreadContextMap Service provider interface to implement custom MDC behavior forThreadContext
.ThreadContextMap2 Deprecated. useThreadContextMap
directlyThreadContextStack Service provider interface to implement custom NDC behavior forThreadContext
. -
Class Summary Class Description AbstractLogger Base implementation of a Logger.AbstractLoggerAdapter<L> Provides an abstract base class to use for implementing LoggerAdapter.DefaultThreadContextMap The actual ThreadContext Map.DefaultThreadContextStack A copy-on-write thread-safe variant oforg.apache.logging.log4j.spi.ThreadContextStack
in which all mutative operations (add, pop, and so on) are implemented by making a fresh copy of the underlying list.ExtendedLoggerWrapper Wrapper class that exposes the protected AbstractLogger methods to support wrapped loggers.LoggerRegistry<T extends ExtendedLogger> Convenience class to be used byLoggerContext
implementations.LoggerRegistry.ConcurrentMapFactory<T extends ExtendedLogger> Generates ConcurrentHashMaps for use by the registry to store the Loggers.LoggerRegistry.WeakMapFactory<T extends ExtendedLogger> Generates WeakHashMaps for use by the registry to store the Loggers.LoggingSystem Handles initializing the Log4j API throughProvider
discovery.LoggingSystemProperty.Constant MutableThreadContextStack TODONoOpThreadContextMap ThreadContextMap
implementation used when either of system properties or istrue
.PropertyComponent.Constant These constants are only for use in LoggingSystemProperty to create constants for @SetSystemProperty.Provider Model class for a Log4j 2 provider. -
Enum Summary Enum Description LoggingSystemProperty Centralized list of property name constants that can be configured in the Log4j API.PropertyComponent Components that own properties.StandardLevel Standard Logging Levels as an enumeration for use internally.