Can't get Log4Net to work in my ASP.NET website :(

后端 未结 5 1439
终归单人心
终归单人心 2021-02-10 13:22

really simple question -> i can\'t seem to get any data from Log4Net in my ASP.NET application. I\'ve got a simple ASP.NET website, which references a class library. In this cla

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 14:06

    I added the following line Global.asax file, and it works..!! log4net.Config.XmlConfigurator.Configure();

提交回复
热议问题