开发者

.NET Error Reporting Framework Client/Server?

开发者 https://www.devze.com 2023-01-08 17:56 出处:网络
Anyone knows of one? Preferred open source? Basically some framework that I can hook up that collects error information, forwards it to a central location via web service including collecting crash d

Anyone knows of one? Preferred open source?

Basically some framework that I can hook up that collects error information, forwards it to a central location via web service including collecting crash dump information (exception stak trace, but possibly some other files on the machine per my extension) and does some statistical analysis + the possibility to return user info to the user (w开发者_JS百科orkaround, bug ID if already registered etc.).


There is an Exception Handling Application Block provided by the Patterns & Practices team at Microsoft. That stuff is usually pretty good :)

http://msdn.microsoft.com/en-us/library/ff650463.aspx

You can combine this with the Logging Application Block to create your own error logging mechanisms via their provider scheme. One of your logging providers could connect to the web service you provide.

Alternatively, and the way I've done it in the past is simply to serialize the resultant exception into an XML file on the client machine and inform them that an error report is available and to give it to their administrator. I've had a few of these come back from out in the wild, and most meant I could solve the problem - some were too finicky and not enough information was present in the exception. This could easily be adapted to post to a web service.

In the code, you then only have the one location - your unhandled exception handler - that results in this error report. All handled exceptions can safely be assumed to be standard behaviour, assuming you don't swallow exceptions in code where they aren't really being handled.


This is not open source.

But Red Gate generally do good products: SmartAssembly

Automated Error Reporting is an exception handling mechanism that automatically and silently collects detailed information when errors occur. Although highly customizable, a typical error report consists of a full stack trace and details about the exception context (e.g. values of all the local variables).

0

精彩评论

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