Using elmah with Orchard

Topics: Customizing Orchard, Troubleshooting
May 5, 2011 at 3:14 AM

Is anyone using elmah (http://code.google.com/p/elmah/) with Orchard?

I would like some way to log and trach unhandled errors and would like to know if this would be a good way to go.

Coordinator
May 5, 2011 at 3:54 AM

Unhandled errors are already being traced and logged in App_Data/logs.

May 5, 2011 at 4:41 AM
bertrandleroy wrote:

Unhandled errors are already being traced and logged in App_Data/logs.

Am I correct in assuming that the logging of the unhandled errors is being handled by log4net?

If so, am I also correct is assuming that I could add an additional "logging target" in the \config\log4net.config file to cause an email to be sent whenever an unhandled error occurs?

Coordinator
May 5, 2011 at 7:40 PM

I think so, although I haven't checked. Let us know how that goes.

Mar 13, 2013 at 9:57 PM
@JonnyBoats - were you able to do this? I'm new to log4net so I'm not sure what a logging target is, but getting an email with an error would be really handy.