Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 DLL 类库中使用 log4net 日志记录 - 我想知道人们会建议我将 log4net 配置放在哪里 - 在 App.config 或单独的 .log4net 配置文件中?
应用程序配置
这样做的原因只是您的应用程序的一个配置文件。我总是喜欢简单。
大多数时候,我喜欢 app.config
但是如果你想在不同的位置重用你的 dll,也许可以考虑 AppName.dll.log4net,你可以复制两个文件,然后重用。