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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (preferred)
CH-1005 Lausanne [EMAIL PROTECTED]
Switzerland Tel: ++41 21 351 23 15
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]