An open API service indexing awesome lists of open source software.

https://github.com/cdon-dev/serilog.dynamicminimumloglevel

Drive your minimum LogEventLevel for serilog via IConfiguration
https://github.com/cdon-dev/serilog.dynamicminimumloglevel

Last synced: about 1 year ago
JSON representation

Drive your minimum LogEventLevel for serilog via IConfiguration

Awesome Lists containing this project

README

          

# Serilog.DynamicMinimumLogLevel
Drive your minimum LogEventLevel for serilog via IConfiguration

Example:
````csharp
private static void ConfigureLogger(HostBuilderContext hostContext, IServiceProvider services, LoggerConfiguration config)
{
config
.MinimumLevel.Is(hostContext.Configuration.GetMinimumLoggingLevel());
}
````