Uses of Interface
org.apache.logging.log4j.ThreadContext.ContextStack
-
Packages that use ThreadContext.ContextStack Package Description org.apache.log4j.bridge org.apache.logging.log4j Public API for Log4j 2.org.apache.logging.log4j.core Implementation of Log4j 2.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.core.impl Log4j 2 private implementation classes.org.apache.logging.log4j.core.jackson Classes and interfaces for serializing and deserializing Log4j 2 log events to XML and JSON using the Jackson library.org.apache.logging.log4j.core.layout Log4j 2 Layout support.org.apache.logging.log4j.spi 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 Modifier and Type Method Description ThreadContext.ContextStack
LogEventWrapper. getContextStack()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j
Classes in org.apache.logging.log4j that implement ThreadContext.ContextStack Modifier and Type Class Description private static class
ThreadContext.EmptyThreadContextStack
An empty read-only ThreadContextStack.Methods in org.apache.logging.log4j that return ThreadContext.ContextStack Modifier and Type Method Description static ThreadContext.ContextStack
ThreadContext. cloneStack()
Returns a copy of this thread's stack.ThreadContext.ContextStack
ThreadContext.ContextStack. copy()
Returns a copy of the ContextStack.ThreadContext.ContextStack
ThreadContext.EmptyThreadContextStack. copy()
static ThreadContext.ContextStack
ThreadContext. getImmutableStack()
Gets an immutable copy of this current thread's context stack.ThreadContext.ContextStack
ThreadContext.ContextStack. getImmutableStackOrNull()
Returns a ContextStack with the same contents as this ContextStack ornull
.ThreadContext.ContextStack
ThreadContext.EmptyThreadContextStack. getImmutableStackOrNull()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.core
Methods in org.apache.logging.log4j.core that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStack
AbstractLogEvent. getContextStack()
ThreadContext.ContextStack
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.ContextStack Modifier and Type Field Description private ThreadContext.ContextStack
RingBufferLogEvent. contextStack
private ThreadContext.ContextStack
RingBufferLogEventTranslator. contextStack
Methods in org.apache.logging.log4j.core.async that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStack
RingBufferLogEvent. getContextStack()
Methods in org.apache.logging.log4j.core.async with parameters of type ThreadContext.ContextStack Modifier and Type Method Description void
RingBufferLogEventTranslator. setBasicValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, ThreadContext.ContextStack aContextStack, java.lang.StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock)
void
RingBufferLogEvent. setValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, StringMap mutableContextData, ThreadContext.ContextStack aContextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.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.ContextStack Modifier and Type Field Description private ThreadContext.ContextStack
Log4jLogEvent.Builder. contextStack
private ThreadContext.ContextStack
Log4jLogEvent. contextStack
private ThreadContext.ContextStack
Log4jLogEvent.LogEventProxy. contextStack
private ThreadContext.ContextStack
MutableLogEvent. contextStack
Methods in org.apache.logging.log4j.core.impl that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStack
Log4jLogEvent. getContextStack()
Returns an immutable copy of the ThreadContext stack.ThreadContext.ContextStack
MutableLogEvent. getContextStack()
Methods in org.apache.logging.log4j.core.impl with parameters of type ThreadContext.ContextStack Modifier and Type Method Description static Log4jLogEvent
Log4jLogEvent. createEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable thrown, ThrowableProxy thrownProxy, java.util.Map<java.lang.String,java.lang.String> mdc, ThreadContext.ContextStack ndc, java.lang.String threadName, java.lang.StackTraceElement location, long timestamp)
Deprecated.useLog4jLogEvent.Builder
instead.Log4jLogEvent.Builder
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.ContextStack Constructor Description Log4jLogEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable t, java.util.Map<java.lang.String,java.lang.String> mdc, ThreadContext.ContextStack ndc, java.lang.String threadName, java.lang.StackTraceElement location, long timestampMillis)
Deprecated.useLog4jLogEvent.Builder
instead.Log4jLogEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.StackTraceElement source, long nanoTime)
Log4jLogEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.StackTraceElement source, long timestampMillis, int nanoOfMillisecond, long nanoTime)
Constructor.Log4jLogEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.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.ContextStack Modifier and Type Method Description abstract 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.ContextStack Modifier and Type Method Description ThreadContext.ContextStack
AbstractJacksonLayout.ReadOnlyLogEventWrapper. getContextStack()
-
Uses of ThreadContext.ContextStack in org.apache.logging.log4j.spi
Subinterfaces of ThreadContext.ContextStack in org.apache.logging.log4j.spi Modifier and Type Interface Description interface
ThreadContextStack
Service provider interface to implement custom NDC behavior forThreadContext
.Classes in org.apache.logging.log4j.spi that implement ThreadContext.ContextStack Modifier and Type Class Description class
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.class
MutableThreadContextStack
TODOMethods in org.apache.logging.log4j.spi that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStack
DefaultThreadContextStack. getImmutableStackOrNull()
ThreadContext.ContextStack
MutableThreadContextStack. getImmutableStackOrNull()
-