[ https://issues.apache.org/jira/browse/LOG4J2-2703?focusedWorklogId=385798&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-385798 ]
ASF GitHub Bot logged work on LOG4J2-2703: ------------------------------------------ Author: ASF GitHub Bot Created on: 12/Feb/20 10:39 Start Date: 12/Feb/20 10:39 Worklog Time Spent: 10m Work Description: vy commented on pull request #339: LOG4J2-2703 Complex data type support in MapMessage JSON formatter URL: https://github.com/apache/logging-log4j2/pull/339 As discussed in [LOG4J2-2703](https://issues.apache.org/jira/browse/LOG4J2-2703), this patch adds support for complex data types in `MapMessage` JSON formatter. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 385798) Remaining Estimate: 0h Time Spent: 10m > MapMessage#getFormattedMessage() incorrectly formats Object's > ------------------------------------------------------------- > > Key: LOG4J2-2703 > URL: https://issues.apache.org/jira/browse/LOG4J2-2703 > Project: Log4j 2 > Issue Type: Bug > Reporter: Volkan Yazici > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > The following code snippet > {color:#0747a6}{{new MapMessage()}} > {{ .with("key1", "val1")}} > {{ .with("key2", Collections.singletonMap("val2.1", "val2.2"))}} > {{ .getFormattedMessage(new String[]\{"JSON"});}}{color} > produces > {color:#0747a6}{{{"key1":"val1", "key2":"{val2.1=val2.2}"}}}{color} > whereas > {color:#0747a6}{{{"key1":"val1", "key2":{"val2.1":"val2.2}"}}}{color} > was expected. -- This message was sent by Atlassian Jira (v8.3.4#803005)