-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
Hello,
I would like to ask, what is the reason for this line
serilog-extensions-logging/src/Serilog.Extensions.Logging/SerilogLoggingBuilderExtensions.cs
Line 48 in 1e9f655
builder.AddFilter<SerilogLoggerProvider>(null, LogLevel.Trace); |
The thing is that I would like to use dotnet configuration for serilog as well, i.e. something like this
"Logging": {
"LogLevel": {
"Default": "None"
},
"Serilog": {
"LogLevel": {
"Default": "Warning"
}
}
}
But that line creates a rule that overwrites the logging configuration.
What is a proper way to use serilog with dotnet configuration rules? Should I simply avoid using AddSerilog
method and call builder.AddProvider(new SerilogLoggerProvider(logger))
instead?
riccardodl
Metadata
Metadata
Assignees
Labels
No labels