LoggerExtensionsIsLevelActive Method
Determine whether the supplied ILogger instance is set at the specified log level or at a more verbose level
Namespace: ASCOM.CommonAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
public static bool IsLevelActive(
this ILogger logger,
LogLevel level
)
<ExtensionAttribute>
Public Shared Function IsLevelActive (
logger As ILogger,
level As LogLevel
) As Boolean
- logger ILogger
- ILogger device instance
- level LogLevel
- Test log level
BooleanTrue if the ILogger is set at the specified log level or at a more verbose levelIn Visual Basic and C#, you can call this method as an instance method on any object of type
ILogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10