From: Mike S. <m...@pe...> - 2006-12-08 06:37:19
|
On Thu, 7 Dec 2006, J. David Blackstone wrote: > And as a bonus, I figured out how to cheat and set this in my configuration file: > > log4perl.DateFormat.GMTIME = sub { $Log::Log4perl::DateFormat::GMTIME = 1 } Unbelievable :). > That's probably an abuse of the configuration file sub notation, using a side effect instead of returning a value, but it works. :) And somehow I think I might have to fight a small political battle to explicitly set a program to log in UTC rather than local time zone, but I don't think anyone will notice or care if it's done in that config file. :) (Which is why I worked so hard to figure out how to make Oracle insert its timestamps in UTC for me.) Logging in UTC makes a lot of sense, especially if you're running servers in multiple time zones and need to consolidate the logs later on. -- Mike Mike Schilli m...@pe... |