[英]Where should I put log4net config - App.config or AppName.dll.log4net?
我在DLL类库中使用log4net日志记录-我想知道人们会建议我将log4net配置放在哪里-在App.config或单独的.log4net配置文件中?
App.Config App.Config中
The reason for this is just one configuration file for your application. 这样做的原因只是您的应用程序的一个配置文件。 I always favor simplicity.
我一直都喜欢简单。
most times, i like app.config 大多数时候,我喜欢app.config
but if you want reuse your dll in different location, maybe consider the AppName.dll.log4net, you can just copy two files, then reuse. 但是,如果要在其他位置重用dll,则可以考虑使用AppName.dll.log4net,您可以复制两个文件,然后重用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.