-api-id | -api-type |
---|---|
M:Windows.Foundation.Diagnostics.LoggingActivity.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions) |
winrt method |
Logs an event with the specified name, fields, level, and options.
The name for this event.
The fields for this event. May be null.
The severity level 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.
If you provide options,LoggingOptions.ActivityId and LoggingOptions.RelatedActivityId are ignored because the activity object automatically manages these values for the event.
eventName should not be used as a payload field. For example, use LogEvent(“MyEvent”, fieldsWithStringData)
instead of LogEvent(stringData)
.
LogEvent(String), LogEvent(String, LoggingFields), LogEvent(String, LoggingFields, LoggingLevel)