[
https://issues.apache.org/jira/browse/LOG4J2-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Remko Popma closed LOG4J2-668.
------------------------------
> AsyncAppender ignores RingBufferLogEvents from AsyncLoggers (when all loggers
> async by setting context selector)
> ----------------------------------------------------------------------------------------------------------------
>
> Key: LOG4J2-668
> URL: https://issues.apache.org/jira/browse/LOG4J2-668
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders, Core
> Affects Versions: 2.0-rc1
> Reporter: Remko Popma
> Assignee: Remko Popma
> Priority: Minor
> Fix For: 2.0-rc2
>
>
> AsyncAppender's #append method currently has this code:
> {code}
> if (!(logEvent instanceof Log4jLogEvent)) {
> return; // only know how to Serialize Log4jLogEvents
> }
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]