Skip to content

Commit ca1a7c5

Browse files
committedMay 16, 2024··
Add missing log4j2.contextData property
1 parent cbced0c commit ca1a7c5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

‎src/site/antora/modules/ROOT/partials/manual/systemproperties/properties-log4j-core-misc.adoc

+23
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,29 @@ See link:../javadoc/log4j-core/org/apache/logging/log4j/core/util/CachedClock[Ja
3939
CoarseCachedClock:: alternative implementation of `CachedClock` with a slightly lower precision.
4040
See link:../javadoc/log4j-core/org/apache/logging/log4j/core/util/CoarseCachedClock[JavaDoc] for details.
4141
42+
[id=log4j2.contextData]
43+
== `log4j2.contextData`
44+
45+
[cols="1h,5"]
46+
|===
47+
| Env. variable
48+
| LOG4J_CONTEXT_DATA
49+
50+
| Type
51+
| link:../javadoc/log4j-api/org/apache/logging/log4j/util/StringMap.html[Class<? extends StringMap>]
52+
53+
| Default value
54+
| link:../javadoc/log4j-api/org/apache/logging/log4j/util/SortedArrayStringMap.html[SortedArrayStringMap]
55+
|===
56+
57+
Fully qualified class name of a
58+
link:../javadoc/log4j-api/org/apache/logging/log4j/util/StringMap.html[StringMap]
59+
implementation to use to store context data in log events.
60+
The implementation must have:
61+
62+
* a no-arg contructor,
63+
* a constructor accepting a single `int` parameter that specifies the capacity of the string map.
64+
4265
[id=log4j2.contextDataInjector]
4366
== `log4j2.contextDataInjector`
4467

0 commit comments

Comments
 (0)
Please sign in to comment.