logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Drapal, Myron E \(Myron\)" <dra...@avaya.com>
Subject RE: Relative time (%r) rolls over very quickly in PatternLayout.
Date Wed, 06 Apr 2005 21:12:15 GMT
Sorry, this is a bug (and intended behavior)...  Thread ID is different
(process restart).



From: Drapal, Myron E (Myron) 
Sent: Wednesday, April 06, 2005 2:56 PM
To: Log4CXX User
Subject: Relative time (%r) rolls over very quickly in PatternLayout.


It looks like there might be an issue with the RelativeTime
(milliseconds since application start) in the PatternLayout

(and maybe other places).  From my empirical tests, it seems to
roll-over in the logs at about 400000 msec (every

6.67 minutes).  See a sample below, the first field is %r, and the wall
clock time is in the message part of the log.


373656 [FINE] T5C5 <VServer.SYSTIME> (ThreadMain) 04/04/05 15:40:04
Mountain Daylight Time -7:00 (UTC = 21:40:04)


6281 [FINE] T663 <VServer.SYSTIME> (ThreadMain) 04/04/05 15:40:55
Mountain Daylight Time -7:00 (UTC = 21:40:55)


This doesn't make sense from looking at the code, as internally this is
an int_64 and shouldn't roll-over for a very long time.

Is this the intended behavior, or is this a bug?


Myron Drapal


View raw message