网站项目,log4net失效了。具体原因不详。

最终在需要写日志的页面加上这个就可以了。

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Text;
using System.Web.Script.Serialization;
using COM.JRJ.AP.Model;
using COM.JRJ.AP.BLL.Action;
using System.Text.RegularExpressions;


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


 

相关文章:

  • 2021-07-06
  • 2022-02-08
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-07
  • 2021-07-26
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-12-10
相关资源
相似解决方案