Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AE721144B for ; Sat, 14 Jun 2014 08:30:03 +0000 (UTC) Received: (qmail 99365 invoked by uid 500); 14 Jun 2014 08:30:02 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 99308 invoked by uid 500); 14 Jun 2014 08:30:02 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 99298 invoked by uid 99); 14 Jun 2014 08:30:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jun 2014 08:30:02 +0000 Date: Sat, 14 Jun 2014 08:30:02 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LOG4J2-668) AsyncAppender ignores RingBufferLogEvents from AsyncLoggers (when all loggers async by setting context selector) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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