Wrong timestamp in the Enterprise Application Logging block
If you have tried the standard implementation of the SimpleFormatter in Enterprise Library Logging block, you will notice that timestamps are not what they should have been (depending on where you live in the world, of course;) ) . In Norway, for instance, the timestamp is 2 hours wrong. This is actually by design, since logging should be time independent and use UTC time. Anyway, in my opinion this should be configurable by default, but it seems the only way around is to write your own, or extend the SimpleFormatter.
Tom Hollander writes about the solution in his blog.
BTW, make sure you use the rolling file trace listener by Erwyn van der Meer. It's excellent for not having one HUGE log file.
No comments yet.
Leave a comment
Search
Knut Hamang
Recent Posts
Recent Comments
- Lori on Html to Pdf in .NET
- Susan on Html to Pdf in .NET
- Susan on Html to Pdf in .NET
- Ananth on Html to Pdf in .NET
- Tim M on Passing an object to ObjectDataSource