Posts Categorized: IoC

Implementing a log4net logging service and injecting through autofac

Posted by & filed under AutoFac, Development, IoC, Log4Net.

SOLID principles state in the Dependency Inversion Principle that you should depend upon abstractions, not implementations. With that in mind, services should not be creating instances of log4net loggers, rather depending on an abstraction of that service. However, creation of a log4net logger requires the type to be passed in when it is instantiated. For […]