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

StructuredDataMessage is not logged

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 3.0.0, 2.11.2
    • Core
    • None
    • 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

        1. instanceof-fix.patch
          4 kB
          Travis Spencer

        Issue Links

          Activity

            People

              ckozak Carter Kozak
              tspencer Travis Spencer
              Votes:
              0 Vote for this issue
              Watchers:
              4 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