可能没有初始化配置,在Global文件Application_Start添加 

log4net.Config.XmlConfigurator.Configure();

或者输出日志进行初始化,如(Log.Error("日志初始化");)

PS:程序集设置:

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Web.config", Watch = true)]

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-10-30
  • 2022-12-23
  • 2021-07-07
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案