[logback-dev] svn commit: r1235 - logback/trunk/logback-access/src/main/java/ch/qos/logback/access

noreply.ceki at qos.ch noreply.ceki at qos.ch
Tue Jan 16 18:08:15 CET 2007


Author: ceki
Date: Tue Jan 16 18:08:15 2007
New Revision: 1235

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/PatternLayout.java

Log:
If we can copy the HttpRequest inputStream, we can obtain the post information

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/PatternLayout.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/PatternLayout.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/PatternLayout.java	Tue Jan 16 18:08:15 2007
@@ -18,6 +18,7 @@
 import ch.qos.logback.access.pattern.LocalIPAddressConverter;
 import ch.qos.logback.access.pattern.LocalPortConverter;
 import ch.qos.logback.access.pattern.NAConverter;
+import ch.qos.logback.access.pattern.PostContentConverter;
 import ch.qos.logback.access.pattern.RemoteHostConverter;
 import ch.qos.logback.access.pattern.RemoteIPAddressConverter;
 import ch.qos.logback.access.pattern.RemoteUserConverter;
@@ -119,6 +120,9 @@
     defaultConverterMap.put("reqParameter", RequestParameterConverter.class
         .getName());
 
+    defaultConverterMap.put("post", PostContentConverter.class.getName());
+
+    
     defaultConverterMap.put("n", LineSeparatorConverter.class.getName());
   }
 



More information about the logback-dev mailing list