Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save miklund/71730313857b8a88cb15 to your computer and use it in GitHub Desktop.
Save miklund/71730313857b8a88cb15 to your computer and use it in GitHub Desktop.
2009-05-28 Part 5: Easy error handling with ELMAH
# Title: Part 5: Easy error handling with ELMAH
# Author: Mikael Lundin
# Link: http://blog.mikaellundin.name/2009/05/28/part-5-easy-error-handling-with-elmah.html
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
</sectionGroup>
</configSections>
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</httpModules>
</system.web>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment