Custom Logging - Elmah

Topics: General, Troubleshooting, Writing modules
Mar 30, 2011 at 6:35 PM

Hi,

How is logging overriden?

I can implement ILogger and IILoggerFactory but how do I get make sure it gets picked up as the prefered logging class? I see it uses a Autofac module instead of ISingletonDependency

What I would like to do is create a Elmah module and use "Elmah.ErrorSignal.FromCurrentContext().Raise(ex);" to log the errors etc. I would then create a "OrchardElmahWarningException" etc to pass in.

What do you think good or bad idea? I just like the elmah interface for viewing errors.

 

 

Oct 5, 2011 at 8:44 PM
Edited Oct 5, 2011 at 8:45 PM

I agree. This is a good question.  Has anyone explored this, or does the Orchard team have guidance on the use of ELMAH error logging?