Skip to content

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

@jamesc-skyward

Description

@jamesc-skyward

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions