Geta shop
DevelopmentOptimizely
Frederik Vig22 maj 2016

Raygun error and crash reporting for Episerver

For us the main difference between Raygun and other error logging tools has been the maintenance aspect where it groups similar errors together, gives you details like the HTTP request data, browser environment and allows you to ignore, assign, mark as solved and also integrate with other tools we use like Octopus Deploy , GitHub and JIRA , and of course alerts to the right people.

Installation

You can try out Raygun for free for 30 days. Go to https://app.raygun.com and register, add your application (if it's not already there). This will give you an API key to use.

Install the following package:

Install-Package Mindscape.Raygun4Net.Mvc Configuration Note: we only do this for production configurations.

Web.config

Add a section to configSections:

<section name="RaygunSettings" type="Mindscape.Raygun4Net.RaygunSettings, Mindscape.Raygun4Net"/> Add the Raygun settings configuration block from above:

<RaygunSettings apikey="YOUR_APP_API_KEY" /> For system.web:

<httpModules> <add name="RaygunErrorModule" type="Mindscape.Raygun4Net.RaygunHttpModule"/> </httpModules> For system.webServer:

<modules> <add name="RaygunErrorModule" type="Mindscape.Raygun4Net.RaygunHttpModule"/> </modules> Log4Net By default Raygun will catch all errors automatically from Application_Error. There's also a provider for Log4Net that you can use as an appender.

Here's an example configuration to append errors from Log4Net to Raygun.

Install-Package log4net.Raygun EPiserverLog.config

Raygun error and crash reporting for Episerver | Geta Digital