Uses of Interface
org.apache.logging.log4j.ThreadContext.ContextStack
-
Packages that use ThreadContext.ContextStack Package Description 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.logging.log4j
Methods in org.apache.logging.log4j that return ThreadContext.ContextStack Modifier and Type Method Description static ThreadContext.ContextStackThreadContext. cloneStack()Returns a copy of this thread's stack.ThreadContext.ContextStackThreadContext.ContextStack. copy()Returns a copy of the ContextStack.static ThreadContext.ContextStackThreadContext. getImmutableStack()Gets an immutable copy of this current thread's context stack.ThreadContext.ContextStackThreadContext.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.ContextStackAbstractLogEvent. getContextStack()ThreadContext.ContextStackLogEvent. 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.ContextStackRingBufferLogEvent. getContextStack()Methods in org.apache.logging.log4j.core.async with parameters of type ThreadContext.ContextStack Modifier and Type Method Description voidRingBufferLogEventTranslator. 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)voidRingBufferLogEvent. 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
Methods in org.apache.logging.log4j.core.impl that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStackLog4jLogEvent. getContextStack()Returns an immutable copy of the ThreadContext stack.ThreadContext.ContextStackMutableLogEvent. getContextStack()Methods in org.apache.logging.log4j.core.impl with parameters of type ThreadContext.ContextStack Modifier and Type Method Description static Log4jLogEventLog4jLogEvent. 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.Builderinstead.Log4jLogEvent.BuilderLog4jLogEvent.Builder. setContextStack(ThreadContext.ContextStack contextStack)voidMutableLogEvent. 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.Builderinstead. -
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 interfaceThreadContextStackService provider interface to implement custom NDC behavior forThreadContext.Classes in org.apache.logging.log4j.spi that implement ThreadContext.ContextStack Modifier and Type Class Description classDefaultThreadContextStackA 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.classMutableThreadContextStackTODOMethods in org.apache.logging.log4j.spi that return ThreadContext.ContextStack Modifier and Type Method Description ThreadContext.ContextStackDefaultThreadContextStack. getImmutableStackOrNull()ThreadContext.ContextStackMutableThreadContextStack. getImmutableStackOrNull()
-