You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2016/07/13 20:09:52 UTC

[48/50] [abbrv] logging-log4j2 git commit: Better docs.

Better docs.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/42fe35a4
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/42fe35a4
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/42fe35a4

Branch: refs/heads/feature/LOG4J2-1430
Commit: 42fe35a4fef0441ee51d164eecd23e256406ea38
Parents: c2ca5ee
Author: ggregory <gg...@apache.org>
Authored: Sun Jul 10 21:27:13 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Sun Jul 10 21:27:13 2016 -0700

----------------------------------------------------------------------
 src/site/xdoc/manual/layouts.xml.vm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/42fe35a4/src/site/xdoc/manual/layouts.xml.vm
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/layouts.xml.vm b/src/site/xdoc/manual/layouts.xml.vm
index f50b0d3..d13cea3 100644
--- a/src/site/xdoc/manual/layouts.xml.vm
+++ b/src/site/xdoc/manual/layouts.xml.vm
@@ -1026,27 +1026,27 @@ WARN  [main]: Message 2</pre>
                 <p>
                   The default syntax for embedded ANSI codes is:
                 </p>
-                <pre>&#64;|<em>code</em>(,<em>code</em>)* <em>text</em>|@</pre>
+                <pre class="prettyprint linenums">&#64;|<em>code</em>(,<em>code</em>)* <em>text</em>|@</pre>
                 <p>
                   For example, to render the message <code>"Hello"</code> in green, use:
                 </p>
-                <pre>&#64;|green Hello|@</pre>
+                <pre class="prettyprint linenums">&#64;|green Hello|@</pre>
                 <p>
                   To render the message <code>"Hello"</code> in bold and red, use:
                 </p>
-                <pre>&#64;|bold,red Warning!|@</pre>
+                <pre class="prettyprint linenums">&#64;|bold,red Warning!|@</pre>
                 <p>
                   You can also define custom style names in the configuration with the syntax:
                 </p>
-                <pre>%message{ansi}{StyleName=value(,value)*( StyleName=value(,value)*)*}%n</pre>
+                <pre class="prettyprint linenums">%message{ansi}{StyleName=value(,value)*( StyleName=value(,value)*)*}%n</pre>
                 <p>
                   For example:
                 </p>
-                <pre>%message{ansi}{WarningStyle=red,bold KeyStyle=white ValueStyle=blue}%n</pre>
+                <pre class="prettyprint linenums">%message{ansi}{WarningStyle=red,bold KeyStyle=white ValueStyle=blue}%n</pre>
                 <p>
                   The call site can look like this:
                 </p>
-                <pre>logger.info("@|KeyStyle {}|@ = @|ValueStyle {}|@", entry.getKey(), entry.getValue());</pre>
+                <pre class="prettyprint linenums">logger.info("@|KeyStyle {}|@ = @|ValueStyle {}|@", entry.getKey(), entry.getValue());</pre>
               </td>
             </tr>
             <tr>