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?
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