Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AntonPetrov83 opened this issue Apr 7, 2022 · 0 comments

Comments

@AntonPetrov83
Copy link

AntonPetrov83 commented Apr 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant