gpt4 book ai didi

c# - 未创建 Log4net 日志文件?

转载 作者:行者123 更新时间:2023-11-30 20:58:20 27 4
gpt4 key购买 nike

我们在 outlook 插件应用程序中使用了 log4net,它运行良好。我们使用的是 VSTO 2010(它支持 outlook 2007 和 2010)。

For some reason we updated the VSTO version in our system (its supports outlook 2007, 2010 and 2013). After that log files are not created in our system. Don't know what was problem.

最佳答案

终于找到了解决问题的方法。

我们需要在声明log4net时指定配置文件名。

例如:

[assembly: log4net.Config.DOMConfigurator(ConfigFile = "[ProjectName].dll.config", Watch = true)]

关于c# - 未创建 Log4net 日志文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16173248/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com