.Net 中的异常日志记录工具
我正在寻找一个好的工具,可以对生产版本中的异常进行详细分析。
我知道 EurekaLog,我曾经看到一个软件的添加,其名称中带有青蛙或类似的东西,在 Google 中搜索它没有任何结果。
有人有推荐吗?
当然,我的主要目标是在生产中发生崩溃时提取最大量的有用信息。
另外,可能有点偏离主题,类似于死锁检测。
I'm looking for a good tool that will give me a detailed analysis of exception in production releases.
I know of EurekaLog and I saw once an add for a software with a frog or something similar in it's name, searched it in Google without any results.
Does anyone have recomandations ?
My main goal of course is to extract the maximum amount of useful information when a crash occurs in production.
Also, maybe a bit off topic, something similar for dead-lock detection.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Log4Net
Log4Net
不太确定您是否在这里寻找 Winforms 还是 ASP.NET 解决方案。但对于 ASP.NET,我使用 Elmah (http://code.google.com/p/elmah /)。
Not really sure if you are looking for a Winforms or ASP.NET solution here. But for ASP.NET I am using Elmah (http://code.google.com/p/elmah/).
我们使用企业库日志记录应用程序块。
http://msdn.microsoft.com/en-us/library/dd139916。 aspx
您可以通过配置以及放置日志语句的位置来确定记录的数量。它还允许您在不停止系统的情况下更改记录的信息量。
We use Enterprise Library Logging Application block.
http://msdn.microsoft.com/en-us/library/dd139916.aspx
You determine how much is logged, through configuration and where you place the logging statements. It also allows you to change the amount of information that is logged without stopping the system.
如果您想要自由选择,而又不想对特定日志框架(Log4Net、nLog、EntLib)产生强烈依赖,您可以看看 Common.Logging 库。它基本上抽象了记录器的实现,仅向所有可用的日志记录块公开一个公共接口。
请参阅:
http://netcommon.sourceforge.net/
免责声明:
我自己还没有使用过它,但我确实打算很快尝试一下。不依赖于特定记录器的想法对我很有吸引力,因为我喜欢坚持每个项目一个日志库。想象一下构建一个使用 nLog 进行日志记录的项目,然后添加 NHibernate。 NH 使用 Log4Net,所以现在我们的依赖项中有两个日志库;-)
If you want freedom of choice without creating a strong dependency on a specific logging framework (Log4Net, nLog, EntLib) you could take a look at the Common.Logging library. It basically abstracts away the implementation of the logger, exposing only a common interface to all available logging blocks.
See:
http://netcommon.sourceforge.net/
Disclaimer:
I haven't used it myself (yet), but I do intend to try it out sometime soon. The idea of not being tied to a specific logger appeals to me, as I like to stick to one log library per project. Imagine building a project which uses nLog for logging, but then you add NHibernate. NH uses Log4Net, so now we've got TWO logging libraries in our dependencies ;-)
感谢您的回答,但这不是我正在寻找的方向。我更感兴趣的是意外错误/崩溃的异常报告,以及可以提取以了解其发生原因的最大数据量,例如所有线程堆栈跟踪、最后操作(点击)用户所做的等等。
日志框架的价值取决于我编写的内容。
Thanks for your answers but it's not the direction I was looking for. I'm more interested in the exception reports of unexpected errors / crashes, and the maximum amount of data that can be extracted to understand why it happened, such as, all threads stack traces, last actions (clicks) the user has made, etc.
The logging frameworks are only as valuable as the stuff I write in.