logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <...@qos.ch>
Subject Re: [PATCH] for Class DatePatternConverter
Date Fri, 16 Mar 2001 08:01:48 GMT

Reinhard,

Your patch results in more accurate results. It's also faster. Good patch. Ceki

At 22:30 15.03.2001 +0100, Reinhard Deschler wrote:
>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


I hope to see you at my ApacheCon 2001 presentation 
entitled "Log4j, A Logging Package for Java".

See http://ApacheCon.Com/2001/US/ for more details.

----
Ceki Gülcü          Web:   http://qos.ch     
av. de Rumine 5     email: cgu@qos.ch (preferred)
CH-1005 Lausanne           ceki_gulcu@yahoo.com
Switzerland         Tel: ++41 21 351 23 15


---------------------------------------------------------------------
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