Description
Currently, the Thread Context Map looks like this in JSONLayout:
Current
"Properties":[ { "name":"UserName", "value":"admin" }, { "name":"OrgName", "value":"test" } ]
This does not properly make use of the JSON data format. Since the Thread Context Map is a map, it should be represented as a JSON object. And why not name it "mdc" rather than the quite vauge "Properties"?
Suggested
"mdc": { "UserName":"admin", "OrgName":"test" }
Attachments
Issue Links
- Blocked
-
LOG4J2-1469 I wish the json layout used a map structure for the context map instead of a list of map entry objects.
- Resolved
- relates to
-
LOG4J2-1362 Create a YAML layout
- Resolved