Package | Description |
---|---|
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.
|
org.apache.logging.log4j.util |
Internal utility classes for the Log4j 2 API.
|
org.apache.logging.slf4j |
SLF4J support.
|
Modifier and Type | Method and Description |
---|---|
StringMap |
ContextDataInjector.injectContextData(java.util.List<Property> properties,
StringMap reusable)
Returns a
StringMap object initialized with the specified properties and the appropriate
context data. |
Modifier and Type | Method and Description |
---|---|
StringMap |
ContextDataInjector.injectContextData(java.util.List<Property> properties,
StringMap reusable)
Returns a
StringMap object initialized with the specified properties and the appropriate
context data. |
Modifier and Type | Field and Description |
---|---|
private StringMap |
RingBufferLogEvent.contextData |
Modifier and Type | Method and Description |
---|---|
(package private) void |
RingBufferLogEvent.setContextData(StringMap contextData) |
void |
RingBufferLogEvent.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,
long aCurrentTimeMillis,
long aNanoTime) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
JdkMapAdapterStringMap
Provides a read-only
StringMap view of a Map<String, String> . |
Modifier and Type | Field and Description |
---|---|
private StringMap |
Log4jLogEvent.contextData |
private StringMap |
Log4jLogEvent.Builder.contextData |
private StringMap |
Log4jLogEvent.LogEventProxy.contextData |
private StringMap |
MutableLogEvent.contextData |
private static StringMap |
ContextDataFactory.EMPTY_STRING_MAP |
Modifier and Type | Field and Description |
---|---|
private static java.lang.Class<? extends StringMap> |
ContextDataFactory.CACHED_CLASS |
Modifier and Type | Method and Description |
---|---|
static StringMap |
ContextDataFactory.createContextData() |
static StringMap |
ContextDataFactory.createContextData(int initialCapacity) |
private static StringMap |
Log4jLogEvent.createContextData(java.util.List<Property> properties) |
private static StringMap |
Log4jLogEvent.createContextData(java.util.Map<java.lang.String,java.lang.String> contextMap) |
static StringMap |
ContextDataFactory.emptyFrozenContextData()
An empty pre-frozen StringMap.
|
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForGarbageFreeThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap reusable)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForCopyOnWriteThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
If there are no configuration properties, this injector will return the thread context's internal data
structure.
|
private static StringMap |
Log4jLogEvent.LogEventProxy.memento(ReadOnlyStringMap data) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Class<? extends StringMap> |
ContextDataFactory.createCachedClass(java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadContextDataInjector.copyProperties(java.util.List<Property> properties,
StringMap result)
Copies key-value pairs from the specified property list into the specified
StringMap . |
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForGarbageFreeThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap reusable)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForCopyOnWriteThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
If there are no configuration properties, this injector will return the thread context's internal data
structure.
|
Log4jLogEvent.Builder |
Log4jLogEvent.Builder.setContextData(StringMap contextData) |
void |
MutableLogEvent.setContextData(StringMap mutableContextData) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.invoke.MethodHandle |
ContextDataFactory.createDefaultConstructor(java.lang.Class<? extends StringMap> cachedClass) |
private static java.lang.invoke.MethodHandle |
ContextDataFactory.createInitialCapacityConstructor(java.lang.Class<? extends StringMap> cachedClass) |
Constructor and Description |
---|
Log4jLogEvent(java.lang.String loggerName,
Marker marker,
java.lang.String loggerFQCN,
Level level,
Message message,
java.lang.Throwable thrown,
ThrowableProxy thrownProxy,
StringMap contextData,
ThreadContext.ContextStack contextStack,
long threadId,
java.lang.String threadName,
int threadPriority,
java.lang.StackTraceElement source,
long timestampMillis,
long nanoTime)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private static StringMap |
CopyOnWriteSortedArrayThreadContextMap.EMPTY_CONTEXT_DATA |
Modifier and Type | Field and Description |
---|---|
protected java.lang.ThreadLocal<StringMap> |
GarbageFreeSortedArrayThreadContextMap.localMap |
private java.lang.ThreadLocal<StringMap> |
CopyOnWriteSortedArrayThreadContextMap.localMap |
Modifier and Type | Method and Description |
---|---|
protected StringMap |
GarbageFreeSortedArrayThreadContextMap.createStringMap()
Returns an implementation of the
StringMap used to back this thread context map. |
protected StringMap |
CopyOnWriteSortedArrayThreadContextMap.createStringMap()
Returns an implementation of the
StringMap used to back this thread context map. |
protected StringMap |
GarbageFreeSortedArrayThreadContextMap.createStringMap(ReadOnlyStringMap original)
Returns an implementation of the
StringMap used to back this thread context map, pre-populated
with the contents of the specified context data. |
protected StringMap |
CopyOnWriteSortedArrayThreadContextMap.createStringMap(ReadOnlyStringMap original)
Returns an implementation of the
StringMap used to back this thread context map, pre-populated
with the contents of the specified context data. |
StringMap |
GarbageFreeSortedArrayThreadContextMap.getReadOnlyContextData()
Returns the context data for reading.
|
StringMap |
ReadOnlyThreadContextMap.getReadOnlyContextData()
Returns the context data for reading.
|
StringMap |
ThreadContextMap2.getReadOnlyContextData()
Returns the context data for reading.
|
StringMap |
CopyOnWriteSortedArrayThreadContextMap.getReadOnlyContextData()
Returns the context data for reading.
|
private StringMap |
GarbageFreeSortedArrayThreadContextMap.getThreadLocalMap() |
Modifier and Type | Method and Description |
---|---|
private java.lang.ThreadLocal<StringMap> |
GarbageFreeSortedArrayThreadContextMap.createThreadLocalMap() |
private java.lang.ThreadLocal<StringMap> |
CopyOnWriteSortedArrayThreadContextMap.createThreadLocalMap() |
Modifier and Type | Interface and Description |
---|---|
interface |
IndexedStringMap
An extension of
StringMap that imposes a total ordering on its keys. |
Modifier and Type | Class and Description |
---|---|
class |
SortedArrayStringMap
Consider this class private.
Array-based implementation of the
ReadOnlyStringMap interface. |
Modifier and Type | Field and Description |
---|---|
private static TriConsumer<java.lang.String,java.lang.Object,StringMap> |
SortedArrayStringMap.PUT_ALL |
Modifier and Type | Field and Description |
---|---|
private static StringMap |
MDCContextMap.EMPTY_CONTEXT_DATA |
Modifier and Type | Method and Description |
---|---|
StringMap |
MDCContextMap.getReadOnlyContextData() |