I live in the EST timezone (Eastern Standard Time, UTC - 4 hours). I'm
developing an application that is hosted by a 3rd party hosting company
in the MST timezone (Mountain Standard Time, UTC - 6 hours). I want the
timestamps in the log file to be in my timezone. I'm not a timezone
expert but here's a quick pattern converter that accepts an hour
offset:
%date{format=yyyy-MM-dd hh:mm:ss tt,hourOffset=-4}
Here's my first implementation:
http://www.ronosaurus.com/log4net/HourOffsetDatePatternConverter.cs.txt
Maybe the end result could be:
%date{yyyy-MM-dd hh:mm:ss tt,timeZone=EST}
Comments?
- Ron