15 votes

Terabyte Elmah

This package add's Elmah exception logging to your site, and includes dashboard controls for viewing error logs. This means you can use umbraco backoffice admin login to authenticate before viewing the logs. YAY.

Elmah is found here: http://code.google.com/p/elmah/

In this version, all the configuration file changes will need to be made manually, this is something I may get the package installer to do if enough people want it, and if I find the time.

I have removed some files which Elmah normally comes with; .pdb, .xml and VistaDB library, if you want to use any of these you should download the elmah binaries and add them to your project.

http://code.google.com/p/elmah/downloads/list

This setup supplies a default configuration using SQLite for x86 for furthur configuration options visit the elmah website, also consider updating elmah DLLs to latest version.

Add these elements to your /config/dashboard.config
 <section>
    <areas>
      <area>developer</area>
    </areas>
    <tab caption="Error Log">
      <control>/umbraco/plugins/Terabyte/Elmah/Elmah.ascx</control>
    </tab>
  </section>

Add these elements to your /web.config

 <?xml version="1.0"?>
 <configuration>
    <configSections>
        <sectionGroup name="elmah">
            <section name="security" type="Elmah.SecuritySectionHandler, Elmah"/>
            <section name="errorLog" type="Elmah.ErrorLogSectionHandler, Elmah"/>
            <section name="errorMail" type="Elmah.ErrorMailSectionHandler, Elmah"/>
            <section name="errorFilter" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
        </sectionGroup>
    </configSections>
    <elmah>
        <security allowRemoteAccess="no"/>
        <errorLog type="Elmah.SQLiteErrorLog, Elmah" connectionStringName="ELMAH.SQLite"/>
        <!--<errorMail from="example@example.com" to="example@example.com" priority="Normal" />-->
        <errorFilter>
            <test>
                <equal binding="HttpStatusCode" value="404" type="Int32"/>
            </test>
        </errorFilter>
    </elmah>
    <connectionStrings>
        <add name="ELMAH.SQLite" connectionString="Data Source=~/App_Data/elmahDatabase.s3db.config" />
    </connectionStrings>
    <system.web>
        <httpModules>
            <!-- ELMAH -->
            <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
            <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
            <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
        </httpModules>
        <httpHandlers>
            <add verb="POST,GET,HEAD" path="/elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
        </httpHandlers>
    </system.web>
    <system.webServer>
        <modules>
            <add name="Elmah.ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
            <add name="Elmah.ErrorFilter" type="Elmah.ErrorFilterModule" preCondition="managedHandler" />
            <add name="Elmah.ErrorMail" type="Elmah.ErrorMailModule" preCondition="managedHandler" />
        </modules>
        <handlers>
            <add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
        </handlers>
    </system.webServer>
 </configuration>

Revision History

v0.6

  • Fixed detail view bug.

Screenshots

Package owner

Murray Roke

Murray Roke

Murray has 824 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.0.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (100%)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Murray Roke
  • Created: 08/12/2010
  • Current version 0.6
  • License MIT
  • Downloads: 1701

External resources