摘要:
1.引用log4net.dll2.在AssemblyInfo.cs中添加初始化:[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]3.添加配置文件,内容如下:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" ty 阅读全文