[ https://issues.apache.org/jira/browse/LOG4J2-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Friedmann updated LOG4J2-504: ------------------------------------- Attachment: log4j2Test.tar.gz Attached is a simple Maven project that demonstrates the errors described. 1) untar the attached archive 2) cd log4j2Test 3) mvn clean assembly:assembly 4) jar -jar ./target/log4j2Test-1.0-SNAPSHOT-jar-with-dependencies.jar 5) view the log file "log4j2Test.log" in the current directory Let me know if you have any questions. Thanks! > 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 > 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.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org