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

Search

Knut Hamang

This is the official site for Knut Hamang. I am a professional technical consultant specialized in Microsoft and .NET technologies and platforms. I work as an independent consultant in Norway and have more than 10 years of professional experience. To get in contact with me, please send me an email or check my public profile on View Knut Hamang's profile on LinkedIn