Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-624

Better structure of Thread Context Stack in JSONLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-rc1
    • 2.2
    • Layouts
    • None

    Description

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

      Current
        "ndc":[foo, bar]"
      

      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:

      Suggested
        "ndc": ["foo", "bar"]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikaelstaldal Mikael Ståldal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: