How To Properly Configure Ninject.Extensions.Logging.Log4Net in my MVC3 project

前端 未结 1 1125
离开以前
离开以前 2021-02-13 22:45

I am trying to properly use Ninject to inject log4net logging into my MVC3 application. I am using the Ninject.MVC3 package, so I have the NinjectMVC3 class th

1条回答
  •  我寻月下人不归
    2021-02-13 23:13

    You shouldn't have to configure anything except the normal log4net config.

    All you have to do is to inject a ILogger wherever you want to log. https://github.com/ninject/ninject.extensions.logging/wiki/Using

    0 讨论(0)
提交回复
热议问题