Created
February 9, 2014 14:32
-
-
Save csharpforevermore/8899887 to your computer and use it in GitHub Desktop.
Configure ELMAH so that it logs errors to Twitter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"/> | |
<section name="errorTweet" requirePermission="false" type="Elmah.ErrorTweetSectionHandler, Elmah"/> | |
</sectionGroup> | |
</configSections> | |
<elmah> | |
<security allowRemoteAccess="1" /> | |
<errorLog type="Elmah.SqlServerCompactErrorLog, Elmah" connectionStringName="LoggingDB" /> | |
<errorTweet | |
userName="twitter_username" | |
password="twitter_password" statusFormat="{Message}" /> | |
</elmah> | |
<system.webServer> | |
<modules> | |
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /> | |
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /> | |
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /> | |
<add name="ErrorTweet" type="Elmah.ErrorTweetModule, Elmah" preCondition="managedHandler" /> | |
</modules> | |
<handlers> | |
<add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" /> | |
</handlers> | |
</system.webServer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment