Interface "Telemetry Logger"
Namespace: System.Telemetry
The interface that allows 3d party extensions to emit telemetry to their own telemetry stores when the Telemetry codeunit is used.
Examples
codeunit 50100 "My Telemetry Logger" implements "Telemetry Logger" { Access = Internal;
procedure LogMessage(EventId: Text; Message: Text; Verbosity: Verbosity; DataClassification: DataClassification; TelemetryScope: TelemetryScope; CustomDimensions: Dictionary of [Text, Text])
begin
Session.LogMessage(EventId, Message, Verbosity, DataClassification, TelemetryScope, CustomDimensions);
end;
}
Methods
LogMessage
Logs a telemetry message.
procedure LogMessage(EventId: Text, Message: Text, Verbosity: Verbosity, DataClassification: DataClassification, TelemetryScope: TelemetryScope, CustomDimensions: Dictionary of [Text, Text])
Parameters
Name | Type | Description |
---|---|---|
EventId | Text |
A unique identifier of the telemetry message. |
Message | Text |
The main content of the telemetry message (typically contains text that can be easily read by a person). |
Verbosity | Verbosity |
The verbosity of the telemetry message. |
DataClassification | DataClassification |
The data classification of the telemetry message. |
TelemetryScope | TelemetryScope |
The telemetry scope of the message. |
CustomDimensions | Dictionary of [Text, Text] |
Any additional information provided together with the telemetry message. |