C
C#3y ago
Welles

Serilog per sink and per log type loglevel override

Hi there, Was wondering if it was possible to set an override per log type for each sink specifically. E.g. Console log should be "Microsoft.Hosting.Lifetime": "Information", "Microsoft.Extensions.Hosting": "Warning", "System.Net.Http.HttpClient.Refit": "Warning", "Microsoft.Extensions.Http":"Warning" and File log should be "Microsoft.Hosting.Lifetime": "Information", "Microsoft.Extensions.Hosting": "Information", "System.Net.Http.HttpClient.Refit": "Information", "Microsoft.Extensions.Http":"Information" Best regards!
1 Reply
Welles
WellesOP3y ago
All information was a bad example, I could just use "restrictedToMinimumLevel":"Information".
Want results from more Discord servers?
Add your server