LoggerExtensionsIsLevelActive Method

Determine whether the supplied ILogger instance is set at the specified log level or at a more verbose level

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static bool IsLevelActive(
	this ILogger logger,
	LogLevel level
)

Parameters

logger  ILogger
ILogger device instance
level  LogLevel
Test log level

Return Value

Boolean
True if the ILogger is set at the specified log level or at a more verbose level

Usage Note

In 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).

Version Information

.NET Standard

Supported in: 2.0

See Also