mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Refactor logging configuration
This commit is contained in:
@@ -33,11 +33,7 @@ public class LoggingInterceptor : ICommandInterceptor
|
||||
// Configure Serilog
|
||||
LoggerConfiguration loggerConfig = new LoggerConfiguration().MinimumLevel.ControlledBy(_levelSwitch)
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Logger(lc => lc.Filter
|
||||
.ByIncludingOnly(e =>
|
||||
e.Level is LogEventLevel.Debug
|
||||
or LogEventLevel.Verbose
|
||||
or LogEventLevel.Error)
|
||||
.WriteTo.Logger(lc => lc
|
||||
.WriteTo.Spectre(renderTextAsMarkup: true)
|
||||
.WriteTo.Sentry(o =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user