Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.55 KB

loggingactivity_logevent_812606037.md

File metadata and controls

36 lines (25 loc) · 1.55 KB
-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

Windows.Foundation.Diagnostics.LoggingActivity.LogEvent

-description

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

-parameters

-param eventName

The name for this event.

-param fields

The fields for this event. May be null.

-param level

The severity level for this event.

-param options

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.

-remarks

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).

-examples

-see-also

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