开发者

Configuring Logging for multiple projects in solution

开发者 https://www.devze.com 2023-02-11 04:24 出处:网络
I am using enterprise library logging block 5.0开发者_如何学C. My solution has over 20 projects, most of them are class libraries. When configuring the enterprise library, do I need to add app.config

I am using enterprise library logging block 5.0开发者_如何学C. My solution has over 20 projects, most of them are class libraries. When configuring the enterprise library, do I need to add app.config in all the projects and create logging related sections in each of the config file?


No, you don't have to duplicate logging settings in all projects. You can create it once, store it in a single file or database and then use non-default configuration sources to share as described in Scenarios 2 and 3 of Developer's Guide. Appendix D - Enterprise Library Configuration Scenarios

0

精彩评论

暂无评论...
验证码 换一张
取 消