[英]How to override logging configuration when using shared config with Entlib5?
I'm using Enterprise Library 5 logging block in a scenario where there is a common (shared) configuration for all applications and I'd like to override some of the shared setting in a specific application. 在所有应用程序都有通用(共享)配置的情况下,我正在使用Enterprise Library 5日志记录块,并且我想覆盖特定应用程序中的某些共享设置。
I followed instructions here (Applying Common Configuration Structure for Application) and was able to use shared logging setting in my app. 我按照此处的说明进行操作(为应用程序应用通用配置结构),并且能够在我的应用程序中使用共享日志记录设置。
The question is how can I override shared setting ie change Rolling Flat File Trace Listener fileName property? 问题是如何覆盖共享设置,即更改滚动平面文件跟踪侦听器的fileName属性? Do you have any working examples? 你有什么可行的例子吗?
Thanks 谢谢
请参阅此处提供的动手实验中的配置源实验。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.