tags:

views:

36

answers:

2

In java, there is a library called SL4J that "wraps" several different logging implementations (default jdk, log4j, commons logging etc.) and makes it quite easy to replace the logging implementation without any code changes.

Is there such a library for .net?

+1  A: 

The Common Infrastructure Libraries for .NET provide such an infrastructure for logging.

It supports full bi-directional event routing support for Entlib 3.1, EntLib 4.1, log4net 1.2.9, log4net 1.2.10 and NLog logging

Jehof
Thank you, that's the sort of thing I was looking for.Do you have good experiences with it in production?
Sebastian
@Sebastian: No, sorry. I don´t use it.
Jehof
A: 

Use Log4Net, as it has a lot of appenders, also for other logging libaries, like the standard .net event log. most times the most easiest and useful one.

cRichter
That's the one we're using now. I'd like to be able to "camouflage" it and be able to replace it at a later date in case something better comes along
Sebastian
hmm... but than its only worth, if it has a better interface.in our case, we created our own "camouflage", with a pretty nice fluent interface. and some automatic context detection.
cRichter