Description
AsyncAppender's #append method currently has this code:
if (!(logEvent instanceof Log4jLogEvent)) { return; // only know how to Serialize Log4jLogEvents }
When all loggers are made asynchronous by setting Log4jContextSelector to org.apache.logging.log4j.core.async.AsyncLoggerContextSelector, they produce RingBufferLogEvent instances, not Log4jLogEvent. These log events will be dropped by AsyncAppender.
Attachments
Issue Links
- is related to
-
LOG4J2-669 NPE when combining AsyncLoggerConfig with AsyncLogger
- Closed