[rt-users] Timestamps when logging to a file
Mike Friedman
mikef at ack.Berkeley.EDU
Mon Dec 12 19:35:42 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I posted this question last week and haven't received any responses, so I
figured I'd ask again. It's not the sort of question that tends to be
answered in an FAQ or in the RT Essentials book, nor even on the wiki
(though I'd like to be proven wrong about that).
Here it is again:
I've configured my RT (3.4.2) to log to a file. When I first set this up,
I noticed that the timestamps were in GMT, unlike syslog logging (which I
was using before), that uses local time.
To cause local time to be used in my file logs, I decided to modify RT.pm,
where the $RT::Logger module is used, to return '[localtime(time)]'
instead of '[gmtime(time)]'. I made a copy of RT.pm in local/lib and
restarted RT.
Now most of the entries in my log file are, indeed, in local time, but
they are interspersed with messages that are still using GMT. Is there
some other place besides RT.pm that I must change in order to get
consistent local time in my log file?
Thanks.
Mike
_____________________________________________________________________
Mike Friedman System and Network Security
mikef at ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://ack.Berkeley.EDU/~mikef http://security.berkeley.edu
_____________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBQ54XYq0bf1iNr4mCEQLSNQCfdFzA7diD4C4jekaDWM8OxiFnsOkAn00p
5sDPIH6gWuZAMLmtYObUCMer
=CYDC
-----END PGP SIGNATURE-----
More information about the rt-users
mailing list