ILoggingTarget ILoggingTarget ILoggingTarget ILoggingTarget Interface

Definition

Logs events.

public : interface ILoggingTargetpublic interface ILoggingTargetPublic Interface ILoggingTarget// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

IsEnabled() IsEnabled() IsEnabled() IsEnabled()

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

public : PlatForm::Boolean IsEnabled()public bool IsEnabled()Public Function IsEnabled() As bool// You can use this method in JavaScript.
Returns
PlatForm::Boolean bool bool bool

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

See Also

IsEnabled(LoggingLevel) IsEnabled(LoggingLevel) IsEnabled(LoggingLevel) IsEnabled(LoggingLevel)

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

public : PlatForm::Boolean IsEnabled(LoggingLevel level)public bool IsEnabled(LoggingLevel level)Public Function IsEnabled(level As LoggingLevel) As bool// You can use this method in JavaScript.
Parameters
level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The event severity level.

Returns
PlatForm::Boolean bool bool bool

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

See Also

IsEnabled(LoggingLevel, Int64) IsEnabled(LoggingLevel, Int64) IsEnabled(LoggingLevel, Int64) IsEnabled(LoggingLevel, Int64)

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

public : PlatForm::Boolean IsEnabled(LoggingLevel level, long keywords)public bool IsEnabled(LoggingLevel level, Int64 keywords)Public Function IsEnabled(level As LoggingLevel, keywords As Int64) As bool// You can use this method in JavaScript.
Parameters
level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The event severity level.

keywords
long Int64 Int64 Int64

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

Returns
PlatForm::Boolean bool bool bool

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

See Also

LogEvent(String) LogEvent(String) LogEvent(String) LogEvent(String)

LogEvent(String, LoggingFields) LogEvent(String, LoggingFields) LogEvent(String, LoggingFields) LogEvent(String, LoggingFields)

Logs an event with the specified name and fields.

public : void LogEvent(PlatForm::String eventName, LoggingFields fields)public void LogEvent(String eventName, LoggingFields fields)Public Function LogEvent(eventName As String, fields As LoggingFields) As void// You can use this method in JavaScript.
Parameters
eventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event. May be null.

See Also

LogEvent(String, LoggingFields, LoggingLevel) LogEvent(String, LoggingFields, LoggingLevel) LogEvent(String, LoggingFields, LoggingLevel) LogEvent(String, LoggingFields, LoggingLevel)

Logs an event with the specified name, fields, and level.

public : void LogEvent(PlatForm::String eventName, LoggingFields fields, LoggingLevel level)public void LogEvent(String eventName, LoggingFields fields, LoggingLevel level)Public Function LogEvent(eventName As String, fields As LoggingFields, level As LoggingLevel) As void// You can use this method in JavaScript.
Parameters
eventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event. May be null.

level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The level of detail for this event.

See Also

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions) LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions) LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions) LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Logs an event with the specified name, fields, level, and options.

public : void LogEvent(PlatForm::String eventName, LoggingFields fields, LoggingLevel level, LoggingOptions options)public void LogEvent(String eventName, LoggingFields fields, LoggingLevel level, LoggingOptions options)Public Function LogEvent(eventName As String, fields As LoggingFields, level As LoggingLevel, options As LoggingOptions) As void// You can use this method in JavaScript.
Parameters
eventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event. May be null.

level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The level of detail for this event.

options
LoggingOptions LoggingOptions LoggingOptions LoggingOptions

The options for this event. Pass null to use the default options. The options are for advanced scenarios. The default values are designed to work well for most events.

See Also

StartActivity(String) StartActivity(String) StartActivity(String) StartActivity(String)

Writes an activity start event and creates a LoggingActivity object.

public : LoggingActivity StartActivity(PlatForm::String startEventName)public LoggingActivity StartActivity(String startEventName)Public Function StartActivity(startEventName As String) As LoggingActivity// You can use this method in JavaScript.
Parameters
startEventName
PlatForm::String String String String

The name for this event.

Returns

An object that represents the new activity.

See Also

StartActivity(String, LoggingFields) StartActivity(String, LoggingFields) StartActivity(String, LoggingFields) StartActivity(String, LoggingFields)

Writes an activity start event with fields and creates a LoggingActivity object.

public : LoggingActivity StartActivity(PlatForm::String startEventName, LoggingFields fields)public LoggingActivity StartActivity(String startEventName, LoggingFields fields)Public Function StartActivity(startEventName As String, fields As LoggingFields) As LoggingActivity// You can use this method in JavaScript.
Parameters
startEventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event.

Returns

An object that represents the new activity.

See Also

StartActivity(String, LoggingFields, LoggingLevel) StartActivity(String, LoggingFields, LoggingLevel) StartActivity(String, LoggingFields, LoggingLevel) StartActivity(String, LoggingFields, LoggingLevel)

Writes an activity start event with the specified fields and level and creates a LoggingActivity object.

public : LoggingActivity StartActivity(PlatForm::String startEventName, LoggingFields fields, LoggingLevel level)public LoggingActivity StartActivity(String startEventName, LoggingFields fields, LoggingLevel level)Public Function StartActivity(startEventName As String, fields As LoggingFields, level As LoggingLevel) As LoggingActivity// You can use this method in JavaScript.
Parameters
startEventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event. May be **null **.

level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The level of detail for this event.

Returns

An object that represents the new activity.

See Also

StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions) StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions) StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions) StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions)

Writes an activity start event with the specified fields, level, and options, and creates a LoggingActivity object.

public : LoggingActivity StartActivity(PlatForm::String startEventName, LoggingFields fields, LoggingLevel level, LoggingOptions options)public LoggingActivity StartActivity(String startEventName, LoggingFields fields, LoggingLevel level, LoggingOptions options)Public Function StartActivity(startEventName As String, fields As LoggingFields, level As LoggingLevel, options As LoggingOptions) As LoggingActivity// You can use this method in JavaScript.
Parameters
startEventName
PlatForm::String String String String

The name for this event.

fields
LoggingFields LoggingFields LoggingFields LoggingFields

The fields for this event. May be null.

level
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The level of detail for this event.

options
LoggingOptions LoggingOptions LoggingOptions LoggingOptions

The options for this event. Pass null to use the default options. The options are for advanced scenarios. The default values are designed to work well for most events.

Returns

An object that represents the new activity.

See Also

See Also