Hoptoad is a web based application that captures your application’s exceptions and errors. It has some simple de-duplication algorithm and forwards new exceptions to your email box. It also tracks your deployment and resolved exceptions.
It is build for Ruby projects but it can be used for .NET apps as well (I wish people behind it would make it more generic than what it is now). For ASP .NET applications, there is another similar application called Exceptioneer but it doesn’t have an open API (you need to add their assembly to your project) and is very isolated to ASP .NET web applications. It is also in private beta.
I use log4net for almost all my projects, so I thought I should write a Hoptoad appender for log4net. The Hoptoad client itself is not locked into log4net and can be used standalone as well. Download the code here
Perhaps the next step is to write the same thing for ELMAH.
To configure the log4net appender use something like the following section:
<appender name=&quot;HoptoadAppender&quot; type=&quot;SharpHop.HoptoadAppender, SharpHop&quot;>
<ApiKey value=&quot;xxxx&quot;/>
<EnvironmentName value=&quot;Dev&quot;/>
<AppName value=&quot;Your app name&quot;/>
<AppVersion value=&quot;1.0.0.0&quot;/>
<AppUrl value=&quot;http://yoururl.com&quot;/>
<layout type=&quot;log4net.Layout.PatternLayout&quot;>
<conversionPattern value=&quot;[%thread] %-5level %logger{1}: %message&quot; />
</layout>
</appender>
UPDATE: SharpHop now has a home at GoogleCode as an open source project with Apache Licene.
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment