Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2530

StructuredDataMessage is not logged

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 3.0.0, 2.11.2
    • Component/s: Core
    • Labels:
      None
    • Flags:
      Patch

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ckozak Carter Kozak
                Reporter:
                tspencer Travis Spencer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h