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

Reusable events drop the original format string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: None
    • Labels:
      None

      Description

      MutableLogEvent and RingBufferLogEvent hold references to state from original messages, but they currently exclude the value of Message.getFormat().

      I would like to write a custom Layout implementation which is aware of the format string and parameters, which doesn't necessarily use the formatted message value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                ckozak Carter Kozak
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: