摘要:
1:添加log4net.dll引用2:建Log4Net.config 包含具体设置参数3: Global.asax protected void Application_Start(object sender, EventArgs e) { log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(Serve... 阅读全文
摘要:
1,写log之前一定要初始化配置文档,相关代码如下:view sourceprint?1log4net.Config.XmlConfigurator.Configure(); //默认的 23log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(System.Web.HttpContext.Current.S... 阅读全文