views:

203

answers:

1

I'm using Nlog as my logger, however I cant seem to find an Ilogger interface in Nlog namespaces unlike log4net's Ilogger interface, do I have to create my own wrapper?

A: 

You need to create a wrapping interface only if you expect to use a different logging technology in the future or if you need to mock the logger for unit testing; if not, the dependency injector will probably let you register concrete instances of the logging class you are using.

Konamiman
While technically true, I think this would be defying the purpose of DI...
Mark Seemann