Package org.apache.logging.log4j.spi
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.
-
ClassDescriptionBase implementation of a Logger.Provides an abstract base class to use for implementing LoggerAdapter.Extension service provider interface to implement additional custom MDC behavior for
ThreadContext.Marker interface indicating that the implementing class is a copy-on-write data structure.SortedArrayStringMap-based implementation of theThreadContextMapinterface that creates a copy of the data structure on every modification.The actual ThreadContext Map.A copy-on-write thread-safe variant oforg.apache.logging.log4j.spi.ThreadContextStackin which all mutative operations (add, pop, and so on) are implemented by making a fresh copy of the underlying list.Extends theLoggerinterface with methods that facilitate implementing or extendingLoggers.Wrapper class that exposes the protected AbstractLogger methods to support wrapped loggers.SortedArrayStringMap-based implementation of theThreadContextMapinterface that attempts not to create temporary objects.Logger that accepts the location of the caller.A basic registry forLoggerContextobjects and their associated external Logger classes.Anchor point for logging implementations.Implemented by factories that createLoggerContextobjects.Deprecated.with no replacement - no longer usedInterface allowing interested classes to know when a LoggerContext has shutdown - if the LoggerContext implementation provides a way to register listeners.LoggerContexts implementing this are able register LoggerContextShutdownAware classes.LoggerRegistry<T extends ExtendedLogger>Convenience class to be used byLoggerContextimplementations.Generates ConcurrentHashMaps for use by the registry to store the Loggers.LoggerRegistry.MapFactory<T extends ExtendedLogger>Interface to control the data structure used by the registry to store the Loggers.LoggerRegistry.WeakMapFactory<T extends ExtendedLogger>Generates WeakHashMaps for use by the registry to store the Loggers.Adapts a legacy MessageFactory to the new MessageFactory2 interface.TODOThreadContextMapimplementation used when either of system propertiesdisableThreadContextMapor .Extension service provider interface to allow putting Object values in theThreadContext.Model class for a Log4j 2 provider.Read-only view of the data structure that implements MDC behavior forThreadContext.Standard Logging Levels as an enumeration for use internally.Interface to be implemented by LoggerContext's that provide a shutdown method.Service provider interface to implement custom MDC behavior forThreadContext.Extension service provider interface to implement additional custom MDC behavior forThreadContext.Creates the ThreadContextMap instance used by the ThreadContext.Service provider interface to implement custom NDC behavior forThreadContext.