ILoggingTarget
ILoggingTarget
ILoggingTarget
ILoggingTarget
Interface
Definition
Logs events.
public : interface ILoggingTargetpublic interface ILoggingTargetPublic Interface ILoggingTarget// You can use this interface in JavaScript.
- Attributes
| 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 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.
The event severity level.
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.
The event severity level.
- keywords
- long Int64 Int64 Int64
The keywords. Each bit of the keywords value represents an event category.
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)
Logs an event with the specified name.
public : void LogEvent(PlatForm::String eventName)public void LogEvent(String eventName)Public Function LogEvent(eventName As String) As void// You can use this method in JavaScript.
- eventName
- PlatForm::String String String String
The name for this event.
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.
- eventName
- PlatForm::String String String String
The name for this event.
The fields for this event. May be null.
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.
- eventName
- PlatForm::String String String String
The name for this event.
The fields for this event. May be null.
The level of detail for this event.
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.
- eventName
- PlatForm::String String String String
The name for this event.
The fields for this event. May be null.
The level of detail for this event.
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.
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.
- startEventName
- PlatForm::String String String String
The name for this event.
An object that represents the new activity.
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.
- startEventName
- PlatForm::String String String String
The name for this event.
The fields for this event.
An object that represents the new activity.
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.
- startEventName
- PlatForm::String String String String
The name for this event.
The fields for this event. May be **null **.
The level of detail for this event.
An object that represents the new activity.
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.
- startEventName
- PlatForm::String String String String
The name for this event.
The fields for this event. May be null.
The level of detail for this event.
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.
An object that represents the new activity.