Wednesday, 7 August 2013

Elmah error logging, can I just log a message?

Elmah error logging, can I just log a message?

I just installed Elmah (https://code.google.com/p/elmah/) for my asp.net
application. Is it possible to log a message with creating an Exception
first?
catch(Exception e)
{
Exception ex = new Exception("ID = 1", e);
ErrorSignal.FromCurrentContext().Raise(ex);
}
so is it possible to do:
ErrorSignal.FromCurrentContext().log("Hello I am testing Elmah");

No comments:

Post a Comment