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 Relative time (%r) rolls over very quickly in PatternLayout.
Date Wed, 06 Apr 2005 20:56:01 GMT
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