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
- Host: GitHub
- URL: https://github.com/cdon-dev/serilog.dynamicminimumloglevel
- Owner: cdon-dev
- License: mit
- Created: 2021-03-11T12:53:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-11T15:21:11.000Z (over 5 years ago)
- Last Synced: 2025-02-06T07:11:13.972Z (over 1 year ago)
- Language: C#
- Size: 12.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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());
}
````