Logging non-exception events

mperdeck

Posted on
Sep 04 2013

I want to add logging to my MVC 4 web site running in an Azure Web Role. I'm considering Raygun.

I understand that Raygun makes it easy to log exceptions. However, I want to be able to log other events as well. For example tracing info to debug hard to reproduce bugs, or user behaviour to improve the sites usability.

Specifically how would I go about logging non-exception events with Raygun?


John-Daniel Trask

Raygun

Posted on
Sep 04 2013

Hi,

Thanks for trying Raygun :-)

At present we don't provide an mechanism for non-error logging, but we are working on adding support for it (ideally having something available before year end). We have had people wrap messages in exceptions but, frankly, that's not a good idea and is pretty awkward at best.

Do keep in mind though that you can log custom data with an exception, check out the overloads on the Send methods - you can use custom tags and custom key value pairs. So, if wanting to include just a bit of extra information with your exceptions then this is the place to do it.

I hope that clarifies,

John-Daniel Trask
Co-founder
Mindscape Limited


Michael Crivello

Posted on
Feb 20 2020

Hi,

Is there any update on this feature?

Michael Crivello
Software Engineer
DraughtLab


Reply