0

We have an ASP.NET MVC 4 web app and I am trying to add Microsoft Extension logging using dependency injection methodology but unable to do.

Here is my BaseController where I am trying to initiate ILoggerFactory property which I wish to use across all controllers as they inherits from BaseController. I am not sure if this is right way in ASP.NET MVC because I am able to do in .NET Core.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Ris
  • 1,152
  • 7
  • 29
  • 63

0 Answers0