用于异常日志记录的企业库5.0 [英] Enterprise library 5.0 for Exception logging

查看:92
本文介绍了用于异常日志记录的企业库5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用Enterprise Library 5.0进行异常记录.

使用随库附带的工具,我可以配置应将日志输入到的数据库.

但是我无法将表名放在应该放置日志的位置,以及我应该使用哪个企业库类将异常记录到数据库表中?

有人可以帮我这个忙吗?示例代码会更有帮助.

谢谢.

Hello all,

i am trying to use Enterprise library 5.0 for exception logging.

Using the tool come along the library i would configure the database where log should go in.

However i am unable to put the table name where log should go and which enterprise library class should i use to log the exceptions in the database table?

Can any one help me out on this? Sample code would be more helpful.

Thanks.

推荐答案

登录调用始终相同.日志将转到的目标位置是可配置的.
请在此处找到一些快速信息: http://bloggingabout.net/blogs/dennis/archive/2009/07/21/quickstart-tutorial-into-enterprise-library-logging.aspx [ http://www.pnpguidance.net/category/EnterpriseLibrary.aspx [ ^ ].

这也应证明是有帮助的: http://msdn.microsoft.com/en -us/library/ff664633(v = PandP.50).aspx [
Loggin calls are always the same. The destination where the logging will go to is configurable.
Please find some quick information here: http://bloggingabout.net/blogs/dennis/archive/2009/07/21/quickstart-tutorial-into-enterprise-library-logging.aspx[^].
Some more can be found here: http://www.pnpguidance.net/category/EnterpriseLibrary.aspx[^].

This shouild also proove helpfull: http://msdn.microsoft.com/en-us/library/ff664633(v=PandP.50).aspx[^].

Cheers!

—MRB


这篇关于用于异常日志记录的企业库5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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