Skip to content

Drive your minimum LogEventLevel for serilog via IConfiguration

License

Notifications You must be signed in to change notification settings

cdon-dev/Serilog.DynamicMinimumLogLevel

Repository files navigation

Serilog.DynamicMinimumLogLevel

Drive your minimum LogEventLevel for serilog via IConfiguration

Example:

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

About

Drive your minimum LogEventLevel for serilog via IConfiguration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages