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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>