ILoggingTarget.IsEnabled Method

Definition

Overloads

IsEnabled()

Indicates whether at least one session is listening for events from the channel.

IsEnabled(LoggingLevel)

Indicates whether at least one session is listening for events with the specified event severity level from the channel.

IsEnabled(LoggingLevel, Int64)

Indicates whether at least one session is listening for events with the specified level and keywords from this channel.

IsEnabled()

Indicates whether at least one session is listening for events from the channel.

public:
 bool IsEnabled();
/// [Windows.Foundation.Metadata.Overload("IsEnabled")]
bool IsEnabled();
[Windows.Foundation.Metadata.Overload("IsEnabled")]
public bool IsEnabled();
function isEnabled()
Public Function IsEnabled () As Boolean

Returns

Boolean

bool

Returns true if at least one session is listening for events from the channel, and otherwise false.

Attributes

See also

Applies to

IsEnabled(LoggingLevel)

Indicates whether at least one session is listening for events with the specified event severity level from the channel.

public:
 bool IsEnabled(LoggingLevel level);
/// [Windows.Foundation.Metadata.Overload("IsEnabledWithLevel")]
bool IsEnabled(LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("IsEnabledWithLevel")]
public bool IsEnabled(LoggingLevel level);
function isEnabled(level)
Public Function IsEnabled (level As LoggingLevel) As Boolean

Parameters

level
LoggingLevel

The event severity level.

Returns

Boolean

bool

Returns true if at least one session is listening for events with the specified level from the channel, and otherwise false.

Attributes

See also

Applies to

IsEnabled(LoggingLevel, Int64)

Indicates whether at least one session is listening for events with the specified level and keywords from this channel.

public:
 bool IsEnabled(LoggingLevel level, long long keywords);
/// [Windows.Foundation.Metadata.Overload("IsEnabledWithLevelAndKeywords")]
bool IsEnabled(LoggingLevel const& level, long const& keywords);
[Windows.Foundation.Metadata.Overload("IsEnabledWithLevelAndKeywords")]
public bool IsEnabled(LoggingLevel level, long keywords);
function isEnabled(level, keywords)
Public Function IsEnabled (level As LoggingLevel, keywords As Long) As Boolean

Parameters

level
LoggingLevel

The event severity level.

keywords
Int64

long long

long

The keywords. Each bit of the keywords value represents an event category.

Returns

Boolean

bool

Returns true if at least one session is listening for events with the specified level and keywords from the channel, and otherwise false.

Attributes

See also

Applies to