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 D25701031E for ; Mon, 7 Oct 2013 15:06:18 +0000 (UTC) Received: (qmail 66858 invoked by uid 500); 7 Oct 2013 15:06:05 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 66400 invoked by uid 500); 7 Oct 2013 15:05:53 -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 66305 invoked by uid 99); 7 Oct 2013 15:05:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Oct 2013 15:05:51 +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; Mon, 07 Oct 2013 15:05:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E105F2388831; Mon, 7 Oct 2013 15:05:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1529927 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml Date: Mon, 07 Oct 2013 15:05:27 -0000 To: commits@logging.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131007150527.E105F2388831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Mon Oct 7 15:05:27 2013 New Revision: 1529927 URL: http://svn.apache.org/r1529927 Log: Show getRootLogger API as an alternative to getLogger(LogManager.ROOT_LOGGER_NAME). Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml?rev=1529927&r1=1529926&r2=1529927&view=diff ============================================================================== --- logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml (original) +++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml Mon Oct 7 15:05:27 2013 @@ -80,6 +80,8 @@ is exceptional in that it always exists and it is part of every hierarchy. A Logger that is directly linked to the root LoggerConfig can be obtained as follows:
Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);
+ Alternatively, and more simply: +
Logger logger = LogManager.getRootLogger();
All other Loggers can be retrieved using the LogManager.getLogger