❔ Serilog filtering
We’re getting a lot of service health check spam in our logs, and we’re only really interested in when things go wrong.
So what I've tried so far is to creating this
LoggerConfigurationExtensions
class that has methods for the default config as well as the specific log filtering. This class lives in a nuget package that our services make use of.
3 Replies
In the services I'm implementing it like this in the program.cs
However no logs are being filtered out
an example log i'm trying to filter:
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.