logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Ståldal (JIRA) <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-624) Better structure of Thread Context Stack in JSONLayout
Date Wed, 30 Apr 2014 08:04:14 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikael Ståldal updated LOG4J2-624:
----------------------------------

    Description: 
The Thread Context Stack is currently represented like this in JSONLayout:

{code:JavaScript|title=Current}
  "ndc":[foo, bar]"
{code}

This is not correct JSON syntax, and does not make proper use of the JSON data format. The
Thread Context Stack should be represented as a JSON array:

{code:JavaScript|title=Suggested}
  "ndc": ["foo", "bar"]
{code}


  was:
The Thread Context Stack is currently represented like this in JSONLayout:

{code:JavaScript:title=Current}
  "ndc":[foo, bar]"
{code}

This is not correct JSON syntax, and does not make proper use of the JSON data format. The
Thread Context Stack should be represented as a JSON array:

{code:JavaScript:title=Suggested}
  "ndc": ["foo", "bar"]
{code}



> Better structure of Thread Context Stack in JSONLayout
> ------------------------------------------------------
>
>                 Key: LOG4J2-624
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-624
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>    Affects Versions: 2.0-rc1
>            Reporter: Mikael Ståldal
>            Priority: Minor
>
> The Thread Context Stack is currently represented like this in JSONLayout:
> {code:JavaScript|title=Current}
>   "ndc":[foo, bar]"
> {code}
> This is not correct JSON syntax, and does not make proper use of the JSON data format.
The Thread Context Stack should be represented as a JSON array:
> {code:JavaScript|title=Suggested}
>   "ndc": ["foo", "bar"]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message