logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-668) AsyncAppender ignores RingBufferLogEvents from AsyncLoggers (when all loggers async by setting context selector)
Date Sat, 14 Jun 2014 08:30:02 GMT
Remko Popma created LOG4J2-668:
----------------------------------

             Summary: 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
            Priority: Minor


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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message