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.core.util |
Log4j 2 helper classes.
|
org.apache.logging.log4j.layout.template.json.util | |
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(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(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 |
---|---|
void |
RingBufferLogEvent.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) |
Modifier and Type | Class and Description |
---|---|
class |
JdkMapAdapterStringMap
Provides a read-only
StringMap view of a Map<String, String> . |
Modifier and Type | Method and Description |
---|---|
static StringMap |
ContextDataFactory.createContextData() |
static StringMap |
ContextDataFactory.createContextData(int initialCapacity) |
static StringMap |
ContextDataFactory.createContextData(Map<String,String> context) |
static StringMap |
ContextDataFactory.createContextData(ReadOnlyStringMap readOnlyStringMap) |
static StringMap |
ContextDataFactory.emptyFrozenContextData()
An empty pre-frozen IndexedStringMap.
|
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(List<Property> props,
StringMap contextData)
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(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(List<Property> props,
StringMap ignore)
If there are no configuration properties, this injector will return the thread context's internal data
structure.
|
StringMap |
ThreadContextDataProvider.supplyStringMap() |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadContextDataInjector.copyProperties(List<Property> properties,
StringMap result)
Copies key-value pairs from the specified property list into the specified
StringMap . |
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(List<Property> props,
StringMap contextData)
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(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(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 |
---|---|
default StringMap |
ContextDataProvider.supplyStringMap()
Returns the context data as a StringMap.
|
Modifier and Type | Method and Description |
---|---|
void |
JsonWriter.writeObject(StringMap map) |
Modifier and Type | Method and Description |
---|---|
StringMap |
ReadOnlyThreadContextMap.getReadOnlyContextData()
Returns the context data for reading.
|
StringMap |
ThreadContextMap2.getReadOnlyContextData()
Returns the context data for reading.
|
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 | Method and Description |
---|---|
StringMap |
MDCContextMap.getReadOnlyContextData() |
Copyright © 1999-2024 The 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.