我正在使用 this.Log 并试图让应用程序开始使用以下属性:
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
这似乎不起作用,当我打开 log4net 调试时,我似乎无法找出原因。我查看了 this.Log 代码,并在 Log4NetLog.cs 文件中找到了以下行:
[assembly: XmlConfigurator(Watch = true)]
这会覆盖我自己的程序集设置吗?有没有办法让这个工作?