Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B64A511EAC for ; Tue, 5 Aug 2014 02:32:30 +0000 (UTC) Received: (qmail 37809 invoked by uid 500); 5 Aug 2014 02:32:30 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 37781 invoked by uid 500); 5 Aug 2014 02:32:30 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 37772 invoked by uid 99); 5 Aug 2014 02:32:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 02:32:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 02:32:29 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 42DE42389070; Tue, 5 Aug 2014 02:32:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1615847 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java Date: Tue, 05 Aug 2014 02:32:09 -0000 To: commits@logging.apache.org From: mattsicker@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140805023209.42DE42389070@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mattsicker Date: Tue Aug 5 02:32:08 2014 New Revision: 1615847 URL: http://svn.apache.org/r1615847 Log: Javadoc updates and notes for future selves. Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java?rev=1615847&r1=1615846&r2=1615847&view=diff ============================================================================== --- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java (original) +++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java Tue Aug 5 02:32:08 2014 @@ -33,6 +33,13 @@ import org.apache.logging.log4j.spi.Abst import org.apache.logging.log4j.util.Strings; /** + * The core implementation of the {@link org.apache.logging.log4j.Logger} interface. Besides providing an + * implementation of all the Logger methods, this class also provides some convenience methods for Log4j 1.x + * compatibility as well as access to the {@link org.apache.logging.log4j.core.Filter Filters} and + * {@link org.apache.logging.log4j.core.Appender Appenders} associated with this Logger. Note that access to these + * underlying objects is provided primarily for use in unit tests or bridging legacy Log4j 1.x code. Future versions + * of this class may or may not include the various methods that are noted as not being part of the public API. + * * @doubt All the isEnabled methods could be pushed into a filter interface. Not sure of the utility of having * isEnabled be able to examine the message pattern and parameters. (RG) Moving the isEnabled methods out of * Logger noticeably impacts performance. The message pattern and parameters are required so that they can be @@ -45,8 +52,10 @@ public class Logger extends AbstractLogg /** * config should be consistent across threads. */ + // FIXME: non-serializable object in serializable class protected volatile PrivateConfig config; + // FIXME: ditto to the above private final LoggerContext context; /** @@ -156,6 +165,7 @@ public class Logger extends AbstractLogg * This method is not exposed through the public API and is used primarily for unit testing. * @return An Iterator over all the Filters associated with the Logger. */ + // FIXME: this really ought to be an Iterable instead of an Iterator public Iterator getFilters() { final Filter filter = config.loggerConfig.getFilter(); if (filter == null) {