79128218

Date: 2024-10-26 09:40:37
Score: 1
Natty:
Report link

Updated for .NET 8! you can add filter when you create Logger:

using var log = new LoggerConfiguration()
  .Filter.ByExcluding(Matching.WithProperty<string>("RequestPath", p => p.StartsWith("/health")))
    .WriteTo.Console()
    .CreateLogger();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amir Hossein