logError
Log an error event.
After completing cleaning, telemetry setting checks, and data mix-in calls TelemetrySender.sendEventData
to log the event. Differs from logUsage
in that it will log the event if the telemetry setting is Error+. Automatically supports echoing to extension telemetry output channel.
Parameters
eventName
The event name to log
data
The data to log
Log an error event.
Calls TelemetrySender.sendErrorData
. Does cleaning, telemetry checks, and data mix-in. Automatically supports echoing to extension telemetry output channel. Will also automatically log any exceptions thrown within the extension host process.
Parameters
error
The error object which contains the stack trace cleaned of PII
data
Additional data to log alongside the stack trace