You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2013/10/07 17:05:27 UTC

svn commit: r1529927 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml

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:
           <pre class="prettyprint">Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);</pre>
+          Alternatively, and more simply: 
+          <pre class="prettyprint">Logger logger = LogManager.getRootLogger();</pre>
           All other Loggers can be retrieved using the
           <a href="../log4j-api/apidocs/org/apache/logging/log4j/LogManager.html#getLogger(java.lang.String)">
             LogManager.getLogger