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.
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
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.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. -
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
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 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
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 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. -
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.