Wrong timestamp in the Enterprise Application Logging block

Thursday, June 15th, 2006 | .NET

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.

Tags:

No comments yet.

Leave a comment