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

Appenders, layouts, etc should support deferred processing

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta2
    • None
    • None

    Description

      Appenders, Layouts and the like that interact with LoggingEvent should support deferred processing.

      This can be accomplished by having a distinct extract() method where the object constructs a value object containing the info needed for later processing from the LoggingEvent and other context (such as current thread, stack trace). At some later time, this value object may be rendered to complete the layout etc. This approach eliminates the need to preemptively collect information such as stack trace that may not be used or to clone the LoggingEvent to isolate the layout or appender from external changes.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            carnold@apache.org Curt Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: