Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
org.apache.logging.log4j.spi |
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
|
Modifier and Type | Method and 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 or
null . |
Modifier and Type | Interface and Description |
---|---|
interface |
ThreadContextStack
Service provider interface to implement custom NDC behavior for
ThreadContext . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultThreadContextStack
A copy-on-write thread-safe variant of
org.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 |
Modifier and Type | Method and Description |
---|---|
ThreadContext.ContextStack |
MutableThreadContextStack.getImmutableStackOrNull() |
ThreadContext.ContextStack |
DefaultThreadContextStack.getImmutableStackOrNull() |
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.