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.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
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.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
. -
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
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, 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
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(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.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(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. -
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()
-