You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by mw...@apache.org on 2003/03/26 07:23:57 UTC

cvs commit: jakarta-log4j/src/java/org/apache/log4j PatternLayout.java

mwomack     2003/03/25 22:23:57

  Modified:    src/java/org/apache/log4j PatternLayout.java
  Log:
  Support for %X MDC option to print entire contents of MDC, bug #18246, changes submitted by Paul Smith.
  
  Revision  Changes    Path
  1.19      +4 -2      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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- PatternLayout.java	18 Mar 2003 21:24:02 -0000	1.18
  +++ PatternLayout.java	26 Mar 2003 06:23:57 -0000	1.19
  @@ -293,10 +293,12 @@
   
        <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
  +     conversion character can 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>
  +     corresponding to the key will be output. If no additional sub-option
  +     is specified, then the entire contents of the MDC key value pair set
  +     is output using a format {{key1,val1},{key2,val2}}</p>
   
        <p>See {@link MDC} class for more details.
        </p>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org