第二步:程序启动时读取log4net的配置文件。 如果是CS程序,在根目录的Program.cs中的Main方法中添加:. log4net.Config.XmlConfigurator.Configure();.
確定! 回上一頁