Uses of Interface
org.apache.logging.log4j.ThreadContext.ContextStack
Packages that use ThreadContext.ContextStack
Package
Description
Public API for Log4j 2.
Implementation of Log4j 2.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Log4j 2 private implementation classes.
Classes and interfaces for serializing and deserializing Log4j 2 log events to XML and JSON using the Jackson
library.
Log4j 2 Layout support.
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
-
Uses of ThreadContext.ContextStack in org.apache.log4j.bridge
Methods in org.apache.log4j.bridge that return ThreadContext.ContextStack -
Uses of ThreadContext.ContextStack in org.apache.logging.log4j
Classes in org.apache.logging.log4j that implement ThreadContext.ContextStackModifier and TypeClassDescriptionprivate static class
An empty read-only ThreadContextStack.Methods in org.apache.logging.log4j that return ThreadContext.ContextStackModifier and TypeMethodDescriptionstatic ThreadContext.ContextStack
ThreadContext.cloneStack()
Returns a copy of this thread's stack.ThreadContext.ContextStack.copy()
Returns a copy of the ContextStack.ThreadContext.EmptyThreadContextStack.copy()
static ThreadContext.ContextStack
ThreadContext.getImmutableStack()
Gets an immutable copy of this current thread's context stack.ThreadContext.ContextStack.getImmutableStackOrNull()
Returns a ContextStack with the same contents as this ContextStack ornull
.ThreadContext.EmptyThreadContextStack.getImmutableStackOrNull()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core
Methods in org.apache.logging.log4j.core that return ThreadContext.ContextStackModifier and TypeMethodDescriptionAbstractLogEvent.getContextStack()
LogEvent.getContextStack()
Gets the context stack (also known as Nested Diagnostic Context or NDC). -
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core.async
Fields in org.apache.logging.log4j.core.async declared as ThreadContext.ContextStackModifier and TypeFieldDescriptionprivate ThreadContext.ContextStack
RingBufferLogEvent.contextStack
private ThreadContext.ContextStack
RingBufferLogEventTranslator.contextStack
Methods in org.apache.logging.log4j.core.async that return ThreadContext.ContextStackMethods in org.apache.logging.log4j.core.async with parameters of type ThreadContext.ContextStackModifier and TypeMethodDescriptionvoid
RingBufferLogEventTranslator.setBasicValues
(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock) void
RingBufferLogEvent.setValues
(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, StringMap mutableContextData, ThreadContext.ContextStack aContextStack, long threadId, String threadName, int threadPriority, StackTraceElement aLocation, Clock clock, NanoClock nanoClock) -
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core.impl
Fields in org.apache.logging.log4j.core.impl declared as ThreadContext.ContextStackModifier and TypeFieldDescriptionprivate ThreadContext.ContextStack
Log4jLogEvent.Builder.contextStack
private final ThreadContext.ContextStack
Log4jLogEvent.contextStack
private final ThreadContext.ContextStack
Log4jLogEvent.LogEventProxy.contextStack
private ThreadContext.ContextStack
MutableLogEvent.contextStack
Methods in org.apache.logging.log4j.core.impl that return ThreadContext.ContextStackModifier and TypeMethodDescriptionLog4jLogEvent.getContextStack()
Returns an immutable copy of the ThreadContext stack.MutableLogEvent.getContextStack()
Methods in org.apache.logging.log4j.core.impl with parameters of type ThreadContext.ContextStackModifier and TypeMethodDescriptionstatic Log4jLogEvent
Log4jLogEvent.createEvent
(String loggerName, Marker marker, String loggerFQCN, Level level, Message message, Throwable thrown, ThrowableProxy thrownProxy, Map<String, String> mdc, ThreadContext.ContextStack ndc, String threadName, StackTraceElement location, long timestamp) Deprecated.Log4jLogEvent.Builder.setContextStack
(ThreadContext.ContextStack contextStack) void
MutableLogEvent.setContextStack
(ThreadContext.ContextStack contextStack) Constructors in org.apache.logging.log4j.core.impl with parameters of type ThreadContext.ContextStackModifierConstructorDescriptionLog4jLogEvent
(String loggerName, Marker marker, String loggerFQCN, Level level, Message message, Throwable t, Map<String, String> mdc, ThreadContext.ContextStack ndc, String threadName, StackTraceElement location, long timestampMillis) Deprecated.useLog4jLogEvent.Builder
instead.private
Log4jLogEvent
(String loggerName, Marker marker, String loggerFQCN, Level level, Message message, Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, String threadName, int threadPriority, StackTraceElement source, long nanoTime) private
Log4jLogEvent
(String loggerName, Marker marker, String loggerFQCN, Level level, Message message, Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, String threadName, int threadPriority, StackTraceElement source, long timestampMillis, int nanoOfMillisecond, long nanoTime) Constructor.private
Log4jLogEvent
(String loggerName, Marker marker, String loggerFQCN, Level level, Message message, Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, String threadName, int threadPriority, StackTraceElement source, Clock clock, long nanoTime) -
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core.jackson
Methods in org.apache.logging.log4j.core.jackson that return ThreadContext.ContextStackModifier and TypeMethodDescriptionabstract ThreadContext.ContextStack
LogEventJsonMixIn.getContextStack()
abstract ThreadContext.ContextStack
LogEventWithContextListMixIn.getContextStack()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core.layout
Methods in org.apache.logging.log4j.core.layout that return ThreadContext.ContextStackModifier and TypeMethodDescriptionAbstractJacksonLayout.ReadOnlyLogEventWrapper.getContextStack()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.spi
Subinterfaces of ThreadContext.ContextStack in org.apache.logging.log4j.spiModifier and TypeInterfaceDescriptioninterface
Service provider interface to implement custom NDC behavior forThreadContext
.Classes in org.apache.logging.log4j.spi that implement ThreadContext.ContextStackModifier and TypeClassDescriptionclass
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.class
TODOMethods in org.apache.logging.log4j.spi that return ThreadContext.ContextStackModifier and TypeMethodDescriptionDefaultThreadContextStack.getImmutableStackOrNull()
MutableThreadContextStack.getImmutableStackOrNull()
Log4jLogEvent.Builder
instead.