logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1529927 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml
Date Mon, 07 Oct 2013 15:05:27 GMT
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



Mime
View raw message