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 classAn empty read-only ThreadContextStack.Methods in org.apache.logging.log4j that return ThreadContext.ContextStackModifier and TypeMethodDescriptionstatic ThreadContext.ContextStackThreadContext.cloneStack()Returns a copy of this thread's stack.ThreadContext.ContextStack.copy()Returns a copy of the ContextStack.ThreadContext.EmptyThreadContextStack.copy()static ThreadContext.ContextStackThreadContext.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.ContextStackRingBufferLogEvent.contextStackprivate ThreadContext.ContextStackRingBufferLogEventTranslator.contextStackMethods 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 TypeMethodDescriptionvoidRingBufferLogEventTranslator.setBasicValues(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock) voidRingBufferLogEvent.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.ContextStackLog4jLogEvent.Builder.contextStackprivate final ThreadContext.ContextStackLog4jLogEvent.contextStackprivate final ThreadContext.ContextStackLog4jLogEvent.LogEventProxy.contextStackprivate ThreadContext.ContextStackMutableLogEvent.contextStackMethods 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 Log4jLogEventLog4jLogEvent.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) voidMutableLogEvent.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.Builderinstead.privateLog4jLogEvent(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) privateLog4jLogEvent(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.privateLog4jLogEvent(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.ContextStackLogEventJsonMixIn.getContextStack()abstract ThreadContext.ContextStackLogEventWithContextListMixIn.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 TypeInterfaceDescriptioninterfaceService provider interface to implement custom NDC behavior forThreadContext.Classes in org.apache.logging.log4j.spi that implement ThreadContext.ContextStackModifier and TypeClassDescriptionclassA 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.classTODOMethods in org.apache.logging.log4j.spi that return ThreadContext.ContextStackModifier and TypeMethodDescriptionDefaultThreadContextStack.getImmutableStackOrNull()MutableThreadContextStack.getImmutableStackOrNull()
Log4jLogEvent.Builderinstead.