log4net

string filePath =  HttpContext.Current.Server.MapPath("~/log4net.config");
            FileInfo fileInfo = new FileInfo(filePath);
            XmlConfigurator.ConfigureAndWatch(fileInfo);
Logger.Info("--------------------------------------------------------------");
            Logger.Info(" test log");
            Logger.Info("--------------------------------------------------------------");

 

posted @ 2017-04-11 20:50  shiningrise  阅读(117)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css