You may also consider using the Common.Logging paragraph for .Net.
http://netcommon.sourceforge.net/
Common.Logging supports log4net, NLog, and the corporate library out of the box. It's easy to write your own adapter for use with Common.Logging if you need to.
Thus, your SDK becomes an agnostic registration platform. The user will still need an entry in app.config or web.config to indicate which platform to use, but the configuration of a specific platform can still be stored in a separate file.
wageoghe
source share