[
https://issues.apache.org/jira/browse/LOG4J2-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15247219#comment-15247219
]
Ralph Goers edited comment on LOG4J2-1362 at 4/19/16 5:39 AM:
--------------------------------------------------------------
Notice that collections are defined as
{code}
contextMap:
MDC.B: B_Value
MDC.A: A_Value
{code}
not
{code}
contextMap:
- key: MDC_B
value: B_Value
- key: MDC_A
value: A_Value
{code}
The only time the second way would be correct is if each item in the collection
is a multi-valued object as in
{code}
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
{code}
The same is true of JSON.
was (Author: [email protected]):
Notice that collections are defined as
{code}
contextMap:
MDC.B: B_Value
MDC.A: A_Value
{code}
not
{code}
contextMap:
- key: MDC_B
value: B_Value
- key: MDC_A
value: A_Value
{code}
The only time the second way would be correct is if each item in the collection
is a multi-valued object as in
{code}
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
{code}
> Create a YAML layout
> --------------------
>
> Key: LOG4J2-1362
> URL: https://issues.apache.org/jira/browse/LOG4J2-1362
> Project: Log4j 2
> Issue Type: New Feature
> Environment: Apache Maven 3.3.9
> (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
> Maven home: E:\Java\apache-maven-3.3.9\bin\..
> Java version: 1.8.0_77, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_77\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Fix For: 2.6
>
>
> Create a YAML layout; this will reuse what we already have for XML and JSON
> through Jackson.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]