[ 
https://issues.apache.org/jira/browse/LOG4J2-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030275#comment-15030275
 ] 

Ralph Goers commented on LOG4J2-504:
------------------------------------

JSONLayout was modified to use Jackson. Does this problem still exist?

> Problems with message field when using MultiformatMessage in JSONLayout
> -----------------------------------------------------------------------
>
>                 Key: LOG4J2-504
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-504
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>    Affects Versions: 2.0-beta9
>            Reporter: Michael Friedmann
>            Assignee: Ralph Goers
>         Attachments: log4j2Test.tar.gz
>
>
> When using MultiformatMessage (e.g. MapMessage) in the JSONLayout, the 
> "message" is properly JSON formatted.  However, it is surrounded by quotes, 
> rendering the overall JSON invalid.  When the quotes are removed, everything 
> works fine.
> Additionally, the individual properties of the MapMessage may already contain 
> JSON formatted values.  These are currently surrounded by quotes as well, 
> again rendering the overall JSON invalid.  Note that for properties whose 
> values are plain strings, however, these need to be JSON escaped.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to