Skip to main content

ITelemetryBaseLogger Interface

Interface to output telemetry events. Implemented by hosting app / loader

Signature

export interface ITelemetryBaseLogger

Properties

PropertyModifiersDefault ValueTypeDescription
minLogLeveloptional(LogLevel:variable).defaultLogLevelMinimum log level to be logged.

Methods

MethodReturn TypeDescription
send(event, logLevel)voidLog a telemetry event, if it meets the appropriate log-level threshold (see minLogLevel).

Property Details

minLogLevel

Minimum log level to be logged.

Signature

minLogLevel?: LogLevel;

Type: LogLevel

Method Details

send

Log a telemetry event, if it meets the appropriate log-level threshold (see minLogLevel).

Signature

send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;

Parameters

ParameterModifiersTypeDescription
eventITelemetryBaseEventThe event to log.
logLeveloptionalLogLevelThe log level of the event. Default: (LogLevel:variable).default.