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

Reusable events drop the original format string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.11.0
    • None
    • 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

              rpopma Remko Popma
              ckozak Carter Kozak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: