Hi there,

following is a patch in DatePatternConverter, which formats the event-time

instead of the current time. This makes specially sense, when the events

are put in the CyclicBuffer.



Greeting

Reinhard Deschler from Germany

--- PatternParser.java      Mon Jan 22 10:57:27 2001
+++ PatternParser.java.patch  Thu Mar 15 20:28:07 2001
@@ -426,7 +426,7 @@

     public
     String convert(LoggingEvent event) {
-      date.setTime(System.currentTimeMillis());
+      date.setTime(event.timeStamp);
       return df.format(date);
     }
   }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to