Exclude Information level logs from Spectre output

This commit is contained in:
2025-10-19 05:11:42 +01:00
parent 3bf40ecba8
commit 64b71ba852

View File

@@ -34,6 +34,7 @@ public class LoggingInterceptor : ICommandInterceptor
LoggerConfiguration loggerConfig = new LoggerConfiguration().MinimumLevel.ControlledBy(_levelSwitch)
.Enrich.FromLogContext()
.WriteTo.Logger(lc => lc
.Filter.ByExcluding(e => e.Level == LogEventLevel.Information)
.WriteTo.Spectre(renderTextAsMarkup: true)
.WriteTo.Sentry(o =>
{