logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1519744 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm
Date Tue, 03 Sep 2013 16:18:23 GMT
Author: ggregory
Date: Tue Sep  3 16:18:22 2013
New Revision: 1519744

URL: http://svn.apache.org/r1519744
Log:
Better docs for levels.

Modified:
    logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm

Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm?rev=1519744&r1=1519743&r2=1519744&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm Tue Sep  3 16:18:22 2013
@@ -681,9 +681,21 @@ WARN  [main]: Message 2</pre>
                 <b>p{level name mapping}</b><br />
                 <b>level{level name mapping}</b>
               </td>
-              <td>Outputs the level of the logging event. A level name mapping map
be provided in the form
-                "level=value, level=value" where level is the name of the Level and value
is the value that
-                should be displayed instead of the name of the Level.</td>
+              <td>
+                <p>
+                  Outputs the level of the logging event. A level name mapping map be provided
in the form
+                  "level=value, level=value" where level is the name of the Level and value
is the value that
+                  should be displayed instead of the name of the Level.
+                </p>
+                <p>
+                  For example:
+                  <pre>level{WARN=Warning, DEBUG=Debug, ERROR=Error, TRACE=Trace, INFO=Info}</pre>
+                </p>
+                <p>
+                  Alternatively, for the compact-minded:
+                  <pre>level{WARN=W, DEBUG=D, ERROR=E, TRACE=T, INFO=I}</pre>
+                </p>
+              </td>
             </tr>
             <tr>
               <td align="center">



Mime
View raw message