Disable logging when level = LogLevel.None#67
Conversation
|
Thanks for the PR! This seems reasonable on the surface, but probably indicates a bug further up the stack in your logging pipeline: loggers shouldn't construct events or invoke providers with the There's an |
|
That's the reason for the It's correct that you don’t have a specific |
I don't think that's necessarily the case. In the documentation you linked, note that the description for
This is different from "Used when a log message shouln't be written". The There's still possibly a bug somewhere, but it's likely to be in whatever is calling the Cheers! |
|
For our case, it's Wolverine that's spam with log events with level Both the built-in console logger and Sentry have a check against The only bug I can see is that the Seq provider does not discard None events. Are we on the same page? |
|
Thanks for digging in deeper. Ugh, yes, I can see how this comes together :) ... awful, but I think you're right 👍 |
|
Published in 9.0.0 now - https://github.com/datalust/seq-extensions-logging/releases/tag/v9.0.0 - thanks @chrisbbe! |
We have issues where log events with
LogLevel.Noneare written to Seq, which it should not according to MS LogLevel documentation