Skip to content

Please document that writeToProviders will ignore filtering rules of the .NET logging #59

@AntonPetrov83

Description

@AntonPetrov83

Hi!

I was resolving an issue that while AddAplicationInsightsLoggerProvider() sets the default filter rule to LogLevel.Warning (here) in the end it was ignored.

I used Serilog with UseSerilog() and writeToProviders: true.

As I understand this is because Serilog installs its own SerilogLoggerFactory which ignores .NET logging filters.

It is okay but please make it obvious from the readme documentation.

P.S. The same is true for Serilog.AspNetCore

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