LoggerExtensions.IsEnabled Method

Determines whether the logger is enabled.

Namespace:  Microsoft.Owin.Logging
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsEnabled ( _
    logger As ILogger, _
    eventType As TraceEventType _
) As Boolean
'Usage
Dim logger As ILogger 
Dim eventType As TraceEventType 
Dim returnValue As Boolean 

returnValue = logger.IsEnabled(eventType)
public static bool IsEnabled(
    this ILogger logger,
    TraceEventType eventType
)
[ExtensionAttribute]
public:
static bool IsEnabled(
    ILogger^ logger, 
    TraceEventType eventType
)
static member IsEnabled : 
        logger:ILogger * 
        eventType:TraceEventType -> bool
public static function IsEnabled(
    logger : ILogger, 
    eventType : TraceEventType
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the logger is enabled; otherwise, false.

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

LoggerExtensions Class

Microsoft.Owin.Logging Namespace