| 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 |
ThreadContext.cloneStack()
Returns a copy of this thread's stack.
|
ThreadContext |
ThreadContext.ContextStack.copy()
Returns a copy of the ContextStack.
|
static ThreadContext |
ThreadContext.getImmutableStack()
Gets an immutable copy of this current thread's context stack.
|
ThreadContext |
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 |
MutableThreadContextStack.getImmutableStackOrNull()
|
ThreadContext |
DefaultThreadContextStack.getImmutableStackOrNull()
|