Logger<T>.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 given logLevel
is enabled.
virtual bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft::Extensions::Logging::LogLevel logLevel) = Microsoft::Extensions::Logging::ILogger::IsEnabled;
bool ILogger.IsEnabled (Microsoft.Extensions.Logging.LogLevel logLevel);
abstract member Microsoft.Extensions.Logging.ILogger.IsEnabled : Microsoft.Extensions.Logging.LogLevel -> bool
override this.Microsoft.Extensions.Logging.ILogger.IsEnabled : Microsoft.Extensions.Logging.LogLevel -> bool
Function IsEnabled (logLevel As LogLevel) As Boolean Implements ILogger.IsEnabled
Parameters
- logLevel
- LogLevel
level to be checked.
Returns
true
if enabled; false
otherwise.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.