[
https://issues.apache.org/jira/browse/LOG4J2-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carter Kozak resolved LOG4J2-2530.
----------------------------------
Resolution: Fixed
> StructuredDataMessage is not logged
> -----------------------------------
>
> Key: LOG4J2-2530
> URL: https://issues.apache.org/jira/browse/LOG4J2-2530
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.9.0
> Reporter: Travis Spencer
> Priority: Major
> Fix For: 3.0.0, 2.11.2
>
> Attachments: instanceof-fix.patch
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 2.9 introduced a new type {{StringMessageMap}}. When added in commit
> 76aff58919dc5030367ea24c7c8ef42dca3b75cd, there were a few checks for
> {{instanceof}} this new type. Consequently, old code that uses
> {{StructuredDataMessages}} are processed differently. In some cases, such
> messages are not logged at all. To fix this, the type checks should be
> generalized to the root base class – {{MapMessage}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)