[prev in list] [next in list] [prev in thread] [next in thread]
List: log4j-cvs
Subject: cvs commit: jakarta-log4j/src/java/org/apache/log4j PatternLayout.java
From: ceki () apache ! org
Date: 2002-04-24 21:21:32
[Download RAW message or body]
ceki 02/04/24 14:21:32
Modified: src/java/org/apache/log4j PatternLayout.java
Log:
Added info for X conversion character.
Revision Changes Path
1.16 +19 -0 jakarta-log4j/src/java/org/apache/log4j/PatternLayout.java
Index: PatternLayout.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/PatternLayout.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- PatternLayout.java 24 Apr 2002 15:03:44 -0000 1.15
+++ PatternLayout.java 24 Apr 2002 21:21:32 -0000 1.16
@@ -244,6 +244,25 @@
</td>
</tr>
+
+ <tr>
+ <td align=center><b>X</b></td>
+
+ <td>
+
+ <p>Used to output the MDC (mapped diagnostic context) associated
+ with the thread that generated the logging event. The <b>X</b>
+ conversion character <em>must</em> be followed by the key for the
+ map placed between braces, as in <b>%X{clientNumber}</b> where
+ <code>clientNumber</code> is the key. The value in the MDC
+ corresponding to the key will be output.</p>
+
+ <p>See {@link MDC} class for more details.
+ </p>
+
+ </td>
+ </tr>
+
<tr>
<td align=center><b>%</b></td>
--
To unsubscribe, e-mail: <mailto:log4j-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-cvs-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic