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 2014/01/16 17:18:19 UTC

[jira] [Updated] (LOG4J2-504) Problems with message field when using MultiformatMessage in JSONLayout

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

Michael Friedmann updated LOG4J2-504:
-------------------------------------

    Description: 
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.

  was: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.

        Summary: Problems with message field when using MultiformatMessage in JSONLayout  (was: Problem with message field when using MultiformatMessage in JSONLayout)

> 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
>
> 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.



--
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