MindscapeHQ / serilog-sinks-raygun

A Serilog sink that writes events to Raygun
Apache License 2.0
11 stars 20 forks source link

Sample console app. Sends stuff to Raygun ok #51

Closed PanosNB closed 1 year ago

PanosNB commented 1 year ago

This PR creates a simple console testing application to ensure messages are sent to Raygun and that onBeforeSend can rename the MachineName property while exceptions thrown in it are also logged.

These appear in the Raygun app: image image

Note for future investigation: Sending a Log message within the Log handler, results in a recursive stack overflow. Future versions can decide if a solution for this is required or it is expected and unavoidable bad coding.

WARNING: There are upcoming breaking changes with Serilog v3, currently in prerelease. I installed that one in the beginning and the system couldn't find teh Sink method we use in our extension method. We should expect issues to creep up once v3 is released