Search code examples
sharepointmosselmah

Is it possible to use ELMAH in a SharePoint environment?


Has anyone integrated ELMAH into their SharePoint environment?

I suppose it's possible as it's all ASP.net, but I just wondered if anyone had done it and if there's a walk through on how to achieve it?


Solution

  • We use ELMAH in our MOSS 2007 environment. Since ELMAH uses HttpHandlers and is set up via the web.config, activating it was a cinch. Just add the ELMAH stuff to the web.config for the application that you're running inside SharePoint.

    If you want ELMAH to report errors at a level higher than your custom application, then add it to the SharePoint web.config.