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

The message and ndc fields are not JavaScript escaped in JSONLayout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta9
    • 2.0-rc1
    • Layouts
    • None

    Description

      The output of the JSONLayout includes the "message" field as is. If there are any embedded newlines, quote, etc, this renders the JSON output as invalid. To correct this, the "message" field should be properly JavaScript escaped.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            mfriedmann Michael Friedmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: