Tag: log4

为什么log4net没有写入文件?

我已经添加了log4net的所有部分,但它没有写入该文件。 我正在使用VS2012 LoadTest项目。 运行LoadTest项目时, System.Console.WriteLine或Debug.WriteLine()不起作用。 我添加了汇编信息行: [assembly: log4net.Config.XmlConfigurator(ConfigFile = “web.config”, Watch = true)] //For log4net 1.2.10.0 我有: – 添加了webconfig部分 – 初始化已配置的XML初始化程序 – 使用正确的日志初始化新的log4net 我的app.config: 我的课: //—————————————————————————— // // This code was generated by a tool. // Runtime Version:4.0.30319.17929 // // Changes to this file may cause incorrect behavior and will be lost if // the […]