LoggerConfigurationExtensions.EnsureSwitch method
Ensure that the logger configuration has a logging level switch controlling its minimum level.
public static LoggerConfiguration EnsureSwitch(this LoggerConfiguration config,
LogEventLevel initial = LogEventLevel.Information)
| parameter | description |
|---|---|
| config | The logger configuration to modify. |
| initial | The initial minimum level for the switch. |
Return Value
The modified logger configuration.
See Also
- class LoggerConfigurationExtensions
- namespace Kestrun.Logging