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
- relates to
-
LOG4J2-1334 Garbage-free synchronous logging: add LogEventFactory that reuses a cached LogEvent
- Resolved