JSNLog to ELMAH Type
tokorie opened this issue · 1 comments
tokorie commented
Why have JsnLog log requests end up with Type of "Exception" in ELMAH?
mperdeck commented
That's because they are passed to Elmah wrapped in exceptions. I think this is because Elmah is all about exception logging.
Here is the relevant code in Common.Logging.Elmah.v2, the NuGet package that is used by JSNLog to pass messages on to Elmah:
var context = HttpContext.Current;
var messageException = new Exception((string)message);
ErrorSignal.FromCurrentContext().Raise(messageException, context);