728x90 AdSpace

3 de out. de 2011

ELMAH


<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>
  <security allowRemoteAccess="0" />
  <errorLog type="Elmah.MemoryErrorLog, Elmah" size="50" />
  <!--<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />-->
  <!--<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="Elmah.Sql" />-->
</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" />
      <add name="ErrorMail"
           type="Elmah.ErrorMailModule, Elmah" />
      <add name="ErrorFilter"
           type="Elmah.ErrorFilterModule, Elmah" />
    </httpModules>

 

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <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>

no image
  • Blogger Comments
  • Facebook Comments

0 comentários :

Top