哪种日志实用程序适合C#中的.NET应用程序(ASP.NET,WinForms)? [英] Which log utility is good for .NET application in C# (ASP.NET, WinForms)?

查看:47
本文介绍了哪种日志实用程序适合C#中的.NET应用程序(ASP.NET,WinForms)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试评估一些可用于.NET框架的最佳日志实用程序,例如Microsoft Enterprise Library,Log4Net,elmah.

I am trying to evaluate some of the best log utilities available for .NET framework, such as Microsoft Enterprise Library, Log4Net, elmah.

已经进行了此练习的人可以帮我列出市场上最好的利弊吗.

Can someone who has already gone through this exercise would come to my help in listing pros and cons of the best available in the market.

感谢&问候,拉杰夫·兰詹·拉尔(Rajeev Ranjan Lall)

Thanks & Regards, Rajeev Ranjan Lall

推荐答案

总的来说,好的是 Log4net .

PROS :Log4Net支持许多输出源.
缺点::有时可能会使您的应用程序变慢.

PROS: Log4Net supports many output sources.
CONS: Sometimes can slow your application.

对于ASP.NET应用程序来说,最好的 ELMAH .

For ASP.NET application is of the best ELMAH.

PROS :您无需为使用Elmah而稍作更改应用程序代码.您只需将其包括在您的应用程序中即可.
缺点:我不知道.

PROS: You do not have to change an application code a bit to use Elmah. You have to just include in you application.
CONS: Not that I know.

这篇关于哪种日志实用程序适合C#中的.NET应用程序(ASP.NET,WinForms)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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