Skip to content

Filtering for UseSerilogRequestLogging #121

@cado1982

Description

@cado1982

It would be handy if I could filter messages that come from the UseSerilogRequestLogging middleware. My use case is to stop logging for my healthcheck path. I'm thinking something along the lines of:

app.UseSerilogRequestLogging(e => e.RequestPath != "/healthcheck");

Maybe this exists but I can't find a way to do that currently. Any ideas?

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