logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Deschler" <reinhard.desch...@web.de>
Subject [PATCH] for Class DatePatternConverter
Date Thu, 15 Mar 2001 21:30:27 GMT
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: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message