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

Reusable event message mementos should be cached

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.11.1, 3.0.0
    • Core
    • None

    Description

      When multiple AsyncAppenders are configured, we invoke MutableLogEvent.memento (or RingBufferLogEvent.memento) for each one, allocating multiple formatted strings.

      On the first invocation, we can set the event message to the new MementoMessage to avoid re-allocations.

      Attachments

        Issue Links

          Activity

            People

              ckozak Carter Kozak
              ckozak Carter Kozak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: