[rt-users] Timestamps when logging to a file

Mike Friedman mikef at ack.Berkeley.EDU
Thu Dec 8 15:45:26 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 method is called, to return '[localtime(time)]' 
instead of '[gmtime(time)]'.  I made a copy of RT.pm in local/lib and 
restarted RT.

Now I find that most of the entries in my log file are, indeed, in local 
time, but interspersed are messages still using GMT.  Is there some other 
place besides RT.pm that I must change 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/AwUBQ5ibaa0bf1iNr4mCEQLXmQCfZdxXRWhTVfxwnwn+nbuPpJRKZ0YAn3Lu
YZRsuIgDFBWnyfR6RrZML4lb
=8GNM
-----END PGP SIGNATURE-----



More information about the rt-users mailing list