ILogger.IsEnabled(LogLevel) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the logger is enabled for the specified log level.
public bool IsEnabled(Microsoft.Testing.Platform.Logging.LogLevel logLevel);
abstract member IsEnabled : Microsoft.Testing.Platform.Logging.LogLevel -> bool
Public Function IsEnabled (logLevel As LogLevel) As Boolean
Parameters
- logLevel
- LogLevel
The log level to check.
Returns
True if the logger is enabled for the specified log level, otherwise false.