Hello,
I would like to ask, what is the reason for this line
|
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?
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
The thing is that I would like to use dotnet configuration for serilog as well, i.e. something like this
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
AddSerilogmethod and callbuilder.AddProvider(new SerilogLoggerProvider(logger))instead?