Method IsLoggerEnabled
IsLoggerEnabled(Microsoft.Extensions.Logging.LogLevel)
Determine whether any of the configured loggers are currently recording log messages at the specified log levels or not.
Declaration
public static bool IsLoggerEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.LogLevel | logLevel | The log level which is to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns True, if logging is available for the specified log level, else returns False. |