首页 > 代码库 > log4net

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("--------------------------------------------------------------");

 

log4net