How to use ELMAH to manually log errors

Is it possible to do the following using ELMAH?

logger.Log(" something");

I’m doing something like this:

try 
{
    // Code that might throw an exception 
}
catch(Exception ex)
{
    // I need to log error here...
}

This exception will not be automatically logged by ELMAH, because it was handled.

10 Answers
10

Leave a Comment