serilog-sinks-exceptionless icon indicating copy to clipboard operation
serilog-sinks-exceptionless copied to clipboard

ILogger methods called with an exception parameter don't show in Exceptionless

Open jamesc-skyward opened this issue 2 months ago • 0 comments

If I call one of the log methods and only pass in a string, everything works as expected.

_logger.LogCritical("Critical error message");

But if I pass in an exception along with a string, the log entry never seems to reach Exceptionless. It does show up in the File sink.

_logger.LogCritical(exception, "Exception");

In Serilog's self log is the following:

Info: Event submission cancelled by plugin: refid= type=error message=Exception, source: ErrorPlugin
Info: Event submission cancelled by event pipeline: refid= type=error message=Exception, source: ExceptionlessClient

Is this something that's not supported? Or am I doing something wrong here?

I'm using these libraries: Serilog.AspNetCore v9.0.0 (which uses Serilog 4.2.0) Serilog.Sinks.Exceptionless v5.0.0 Exceptionless v6.1.0

jamesc-skyward avatar Oct 17 '25 18:10 jamesc-skyward