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

AsyncAppender - Allow serialization of custom LogEvents

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      This request is for an improvement to AsyncAppender to allow sublasses of Log4jLogEvent to be serialized without losing their specific type.

      The current functionality is that AsyncAppender will serialize all subclasses back to a true instance of Log4jLogEvent. In the process, all extra information is lost that was provided by the subclass.

      AsyncAppender, line 156:

      final Serializable serialized = Log4jLogEvent.serialize(coreEvent, includeLocation);

      Use Case

      Subclasses of Log4jLogEvent that contain the authenticated principal to be logged.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              strickjb John Strickler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: