You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Michael Friedmann (JIRA)" <ji...@apache.org> on 2013/12/27 18:01:53 UTC
[jira] [Created] (LOG4J2-478) "message" field not JavaScript
escaped in JSONLayout
Michael Friedmann created LOG4J2-478:
----------------------------------------
Summary: "message" field not JavaScript escaped in JSONLayout
Key: LOG4J2-478
URL: https://issues.apache.org/jira/browse/LOG4J2-478
Project: Log4j 2
Issue Type: Bug
Components: Layouts
Affects Versions: 2.0-beta9
Reporter: Michael Friedmann
Fix For: 2.0-rc1
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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org