Enterprise Library 6.0日志记录禁用/启用动态 [英] Enterprise Library 6.0 Logging disable/enable dynamically

查看:60
本文介绍了Enterprise Library 6.0日志记录禁用/启用动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要求在日志文件和事件查看器中记录消息。但我想如果我调用一个方法然后它应该在日志文件中记录消息,而不是在事件查看器中。并且,如果我调用第二种方法,那么它应该同时在事件查看器中记录消息而不是在日志文件中记录

I have requirement to log the message in Log file and Event Viewer. But I want if I call one method then it should log the message in Log file not in Event Viewer at that time. And, if I call second method then it should log the message in Event Viewer not in Log file at the same time.

请告知是否有办法使用Enterprise Library 6.0。

Please advise if there is way to do this using Enterprise Library 6.0.

推荐答案

Hi Vikram,

Hi Vikram,

根据您的描述,您的案例与企业库相关,就像许多模式和模式一样。实践可交付成果,
与社区网站相关联
-   www.codeplex.com/entlib 。 

请发布此问题并使用  获取支持 < span lang ="zh-CN"style ="background:white; font-family:'Segoe UI'; font-size:10pt">
企业库讨论论坛




感谢您的理解。

Based on your description, your case related to the Enterprise Library, like many patterns & practices deliverables, is associated with a community sitewww.codeplex.com/entlib
Please post this issue and get support using the Enterprise Library Discussion forum.

Thanks for your understanding.






这篇关于Enterprise Library 6.0日志记录禁用/启用动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆