Uses of Interface
org.apache.logging.log4j.util.StringMap
-
Packages that use StringMap 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. -
-
Uses of StringMap in org.apache.logging.log4j.core
Methods in org.apache.logging.log4j.core that return StringMap Modifier and Type Method Description StringMap
ContextDataInjector. injectContextData(java.util.List<Property> properties, StringMap reusable)
Returns aStringMap
object initialized with the specified properties and the appropriate context data.Methods in org.apache.logging.log4j.core with parameters of type StringMap Modifier and Type Method Description StringMap
ContextDataInjector. injectContextData(java.util.List<Property> properties, StringMap reusable)
Returns aStringMap
object initialized with the specified properties and the appropriate context data. -
Uses of StringMap in org.apache.logging.log4j.core.async
Fields in org.apache.logging.log4j.core.async declared as StringMap Modifier and Type Field Description private StringMap
RingBufferLogEvent. contextData
Methods in org.apache.logging.log4j.core.async that return StringMap Modifier and Type Method Description private static StringMap
AsyncLogger. getContextData(RingBufferLogEvent event)
Methods in org.apache.logging.log4j.core.async with parameters of type StringMap Modifier and Type Method 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, Clock clock, NanoClock nanoClock)
-
Uses of StringMap in org.apache.logging.log4j.core.impl
Classes in org.apache.logging.log4j.core.impl that implement StringMap Modifier and Type Class Description class
JdkMapAdapterStringMap
Provides a read-onlyStringMap
view of aMap<String, String>
.Fields in org.apache.logging.log4j.core.impl declared as StringMap Modifier and Type Field Description private StringMap
Log4jLogEvent.Builder. contextData
private StringMap
Log4jLogEvent. contextData
private StringMap
Log4jLogEvent.LogEventProxy. contextData
private StringMap
MutableLogEvent. contextData
private static StringMap
ContextDataFactory. EMPTY_STRING_MAP
Fields in org.apache.logging.log4j.core.impl with type parameters of type StringMap Modifier and Type Field Description private static java.lang.Class<? extends StringMap>
ContextDataFactory. CACHED_CLASS
Methods in org.apache.logging.log4j.core.impl that return StringMap Modifier and Type Method Description static StringMap
ContextDataFactory. createContextData()
static StringMap
ContextDataFactory. createContextData(int initialCapacity)
static StringMap
ContextDataFactory. createContextData(java.util.Map<java.lang.String,java.lang.String> context)
static StringMap
ContextDataFactory. createContextData(ReadOnlyStringMap readOnlyStringMap)
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 IndexedStringMap.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.StringMap
ThreadContextDataInjector.ForDefaultThreadContextMap. injectContextData(java.util.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(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.private static StringMap
Log4jLogEvent.LogEventProxy. memento(ReadOnlyStringMap data)
StringMap
ThreadContextDataProvider. supplyStringMap()
Methods in org.apache.logging.log4j.core.impl that return types with arguments of type StringMap Modifier and Type Method Description private static java.lang.Class<? extends StringMap>
ContextDataFactory. createCachedClass(java.lang.String className)
Methods in org.apache.logging.log4j.core.impl with parameters of type StringMap Modifier and Type Method Description static void
ThreadContextDataInjector. copyProperties(java.util.List<Property> properties, StringMap result)
Copies key-value pairs from the specified property list into the specifiedStringMap
.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.StringMap
ThreadContextDataInjector.ForDefaultThreadContextMap. injectContextData(java.util.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(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.Log4jLogEvent.Builder
Log4jLogEvent.Builder. setContextData(StringMap contextData)
void
MutableLogEvent. setContextData(StringMap mutableContextData)
Method parameters in org.apache.logging.log4j.core.impl with type arguments of type StringMap Modifier and Type Method Description private static java.lang.reflect.Constructor<?>
ContextDataFactory. createDefaultConstructor(java.lang.Class<? extends StringMap> cachedClass)
private static java.lang.reflect.Constructor<?>
ContextDataFactory. createInitialCapacityConstructor(java.lang.Class<? extends StringMap> cachedClass)
Constructors in org.apache.logging.log4j.core.impl with parameters of type StringMap Constructor 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 nanoTime)
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, int nanoOfMillisecond, long nanoTime)
Constructor.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, Clock clock, long nanoTime)
-
Uses of StringMap in org.apache.logging.log4j.core.util
Methods in org.apache.logging.log4j.core.util that return StringMap Modifier and Type Method Description default StringMap
ContextDataProvider. supplyStringMap()
Returns the context data as a StringMap. -
Uses of StringMap in org.apache.logging.log4j.layout.template.json.util
Methods in org.apache.logging.log4j.layout.template.json.util with parameters of type StringMap Modifier and Type Method Description void
JsonWriter. writeObject(StringMap map)
-
Uses of StringMap in org.apache.logging.log4j.spi
Fields in org.apache.logging.log4j.spi declared as StringMap Modifier and Type Field Description private static StringMap
CopyOnWriteSortedArrayThreadContextMap. EMPTY_CONTEXT_DATA
Fields in org.apache.logging.log4j.spi with type parameters of type StringMap Modifier and Type Field Description private java.lang.ThreadLocal<StringMap>
CopyOnWriteSortedArrayThreadContextMap. localMap
protected java.lang.ThreadLocal<StringMap>
GarbageFreeSortedArrayThreadContextMap. localMap
Methods in org.apache.logging.log4j.spi that return StringMap Modifier and Type Method Description protected StringMap
CopyOnWriteSortedArrayThreadContextMap. createStringMap()
Returns an implementation of theStringMap
used to back this thread context map.protected StringMap
CopyOnWriteSortedArrayThreadContextMap. createStringMap(ReadOnlyStringMap original)
Returns an implementation of theStringMap
used to back this thread context map, pre-populated with the contents of the specified context data.protected StringMap
GarbageFreeSortedArrayThreadContextMap. createStringMap()
Returns an implementation of theStringMap
used to back this thread context map.protected StringMap
GarbageFreeSortedArrayThreadContextMap. createStringMap(ReadOnlyStringMap original)
Returns an implementation of theStringMap
used to back this thread context map, pre-populated with the contents of the specified context data.StringMap
CopyOnWriteSortedArrayThreadContextMap. getReadOnlyContextData()
Returns the context data for reading.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.private StringMap
GarbageFreeSortedArrayThreadContextMap. getThreadLocalMap()
Methods in org.apache.logging.log4j.spi that return types with arguments of type StringMap Modifier and Type Method Description private java.lang.ThreadLocal<StringMap>
CopyOnWriteSortedArrayThreadContextMap. createThreadLocalMap()
private java.lang.ThreadLocal<StringMap>
GarbageFreeSortedArrayThreadContextMap. createThreadLocalMap()
-
Uses of StringMap in org.apache.logging.log4j.util
Subinterfaces of StringMap in org.apache.logging.log4j.util Modifier and Type Interface Description interface
IndexedStringMap
An extension ofStringMap
that imposes a total ordering on its keys.Classes in org.apache.logging.log4j.util that implement StringMap Modifier and Type Class Description class
SortedArrayStringMap
Consider this class private. Array-based implementation of theReadOnlyStringMap
interface.Fields in org.apache.logging.log4j.util with type parameters of type StringMap Modifier and Type Field Description private static TriConsumer<java.lang.String,java.lang.Object,StringMap>
SortedArrayStringMap. PUT_ALL
-
Uses of StringMap in org.apache.logging.slf4j
Fields in org.apache.logging.slf4j declared as StringMap Modifier and Type Field Description private static StringMap
MDCContextMap. EMPTY_CONTEXT_DATA
Methods in org.apache.logging.slf4j that return StringMap Modifier and Type Method Description StringMap
MDCContextMap. getReadOnlyContextData()
-