logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1419741 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm
Date Mon, 10 Dec 2012 20:36:47 GMT
Author: ggregory
Date: Mon Dec 10 20:36:46 2012
New Revision: 1419741

URL: http://svn.apache.org/viewvc?rev=1419741&view=rev
Log:
[LOG4J2-134] Use %red, %white, %blue, and so on in the console appender. Add some documentation
to the manual.

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=1419741&r1=1419740&r2=1419741&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 Mon Dec 10 20:36:46 2012
@@ -707,6 +707,15 @@ WARN  [main]: Message 2</pre>
                     </tr>
                   </table>
                 </p>
+				<p>For example:
+                  <pre>%style{%d{ISO8601}}{black} %style{[%t]}{blue} %style{%-5level:}{yellow}
%style{%msg%n%throwable}{green}</pre>
+                </p>
+				<p>You can also combine styles:
+                  <pre>%d %highlight{%p} %style{%logger}{bright,cyan} %C{1.} %msg%n</pre>
+                </p>
+				<p>You can also use <code>%</code> with a color like <code>%black</code>,
<code>%blue</code>, <code>%cyan</code>, and so on. For example:
+                  <pre>%black{%d{ISO8601}} %blue{[%t]} %yellow{%-5level:} %green{%msg%n%throwable}</pre>
+				</p>
               </td>
             </tr>
             <tr>



Mime
View raw message