Can anyone help me to know regarding how to log custom message using ELMAH and C# ,in case of successful web requests return status code 200.
Is there any method similar to the one as mentioned below :
Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
to log custom message.
A code sample would be very useful.
Thanks & Regards, Santosh Kumar Patro
As far as I know, ELMAH only handles exceptions (Error Logging Modules and Handlers), but with this little trick you can make it log whatever you want, whenever you want
Note that this may not be the only or best approach to solve your problem
ErrorSignal.FromCurrentContext().Raise(new NotImplementedException("blah blah blah whatever you want")); //ELMAH Signaling