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 ps...@apache.org on 2003/12/10 03:45:12 UTC
cvs commit: jakarta-log4j/src/java/org/apache/log4j PatternLayout.java
psmith 2003/12/09 18:45:12
Modified: src/java/org/apache/log4j PatternLayout.java
Log:
Added the javadoc describing the Properties
pattern in a similar veign to the MDC entry.
Revision Changes Path
1.25 +16 -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.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- PatternLayout.java 23 Sep 2003 18:52:51 -0000 1.24
+++ PatternLayout.java 10 Dec 2003 02:45:12 -0000 1.25
@@ -309,6 +309,22 @@
</td>
</tr>
+ <tr>
+ <td align=center><b>Y</b></td>
+
+ <td>
+
+ <p>Used to output the Properties associated
+ with the logging event. The <b>Y</b>
+ conversion character can be followed by the key for the
+ map placed between braces, as in <b>%Y{log4japp}</b> where
+ <code>log4japp</code> is the key. The value in the Properties bundle
+ corresponding to the key will be output. If no additional sub-option
+ is specified, then the entire contents of the Properties key value pair set
+ is output using a format {{key1,val1},{key2,val2}}</p>
+ </td>
+ </tr>
+
<tr>
<td align=center><b>%</b></td>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org