You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/11/13 11:11:22 UTC
logging-log4j2 git commit: LOG4J2-1341 update user manual
Repository: logging-log4j2
Updated Branches:
refs/heads/master 9844b8251 -> c262a53d1
LOG4J2-1341 update user manual
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/c262a53d
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c262a53d
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c262a53d
Branch: refs/heads/master
Commit: c262a53d138c6c879bf3b764983e546d9c03d356
Parents: 9844b82
Author: rpopma <rp...@apache.org>
Authored: Sun Nov 13 20:11:21 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Sun Nov 13 20:11:21 2016 +0900
----------------------------------------------------------------------
src/site/xdoc/manual/garbagefree.xml | 39 +++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c262a53d/src/site/xdoc/manual/garbagefree.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/garbagefree.xml b/src/site/xdoc/manual/garbagefree.xml
index 02774c0..5aca9e8 100644
--- a/src/site/xdoc/manual/garbagefree.xml
+++ b/src/site/xdoc/manual/garbagefree.xml
@@ -259,22 +259,32 @@
</td>
</tr>
<tr>
- <td>%highlight{pattern}{style}</td>
- <td>Adds ANSI colors (unless nested pattern is not garbage free)</td>
+ <td>%equals{pattern}{test}{substitution},
+ %equalsIgnoreCase{pattern}{test}{substitution}</td>
+ <td>Replaces occurrences of 'test', a string, with its replacement 'substitution'
+ in the string resulting from evaluation of the pattern - garbage-free since 2.8</td>
</tr>
<tr>
- <td>style{pattern}{ANSI style}</td>
- <td>Style the message (unless nested pattern is not garbage free)</td>
+ <td>%highlight{pattern}{style}</td>
+ <td>Adds ANSI colors (unless nested pattern is not garbage free) - since 2.7</td>
</tr>
<tr>
<td>%m, %msg, %message</td>
<td>Log message (unless message text contains '${')</td>
</tr>
<tr>
+ <td>%marker</td>
+ <td>The full name of the marker (including parents) - since 2.8</td>
+ </tr>
+ <tr>
<td>%markerSimpleName</td>
<td>The simple name of the marker (not including parents)</td>
</tr>
<tr>
+ <td>%maxLen, %maxLength</td>
+ <td>Truncates another pattern to some max number of characters - since 2.8</td>
+ </tr>
+ <tr>
<td>%n</td>
<td>The platform dependent line separator</td>
</tr>
@@ -287,6 +297,20 @@
<td>The level of the logging event</td>
</tr>
<tr>
+ <td>%r,
+ %relative</td>
+ <td>The number of milliseconds elapsed since the JVM was started until the creation of the logging event
+ - since 2.8</td>
+ </tr>
+ <tr>
+ <td>%sn, %sequenceNumber</td>
+ <td>A sequence number that will be incremented in every event - since 2.8</td>
+ </tr>
+ <tr>
+ <td>%style{pattern}{ANSI style}</td>
+ <td>Style the message (unless nested pattern is not garbage free) - since 2.7</td>
+ </tr>
+ <tr>
<td>%T, %tid, %threadId</td>
<td>The ID of the thread that generated the logging event</td>
</tr>
@@ -299,6 +323,13 @@
<td>The priority of the thread that generated the logging event</td>
</tr>
<tr>
+ <td>%X{key[,key2...]},
+ %mdc{key[,key2...]},
+ %MDC{key[,key2...]}</td>
+ <td>Outputs the Thread Context Map (also known as the Mapped Diagnostic Context or MDC)
+ associated with the thread that generated the logging event - since 2.8</td>
+ </tr>
+ <tr>
<td>literal text</td>
<td>unless literal contains '${' (variable substitution)</td>
</tr>