What is the disadvantage of manually registering Log4Net Logger instance to ILog in Autofac?
- 阅读更多 关于 What is the disadvantage of manually registering Log4Net Logger instance to ILog in Autofac?
问题 Autofac has log4net Integration Module called LoggingModule . However, I register Logger to ILog manually without using LoggingModule , and it seems working fine. ILog log = LogManager.GetLogger("Logger"); builder.RegisterInstance(log).As<ILog>().SingleInstance(); My question is - what is the disadvantage/side effect of using above approach instead of using LoggingModule . web.config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="log4net" type="log4net