TelemetryNullLogger Class

Packages > @fluidframework/common-utils > TelemetryNullLogger

Null logger It can be used in places where logger instance is required, but events should be not send over.

Signature:

export declare class TelemetryNullLogger implements ITelemetryLogger 

Implements: ITelemetryLogger

Methods

List of methods on this class
Method Modifiers Description
send(event)
sendErrorEvent(event, error)
sendPerformanceEvent(event, error)
sendTelemetryEvent(event, error)

Methods

send

Signature:

send(event: ITelemetryBaseEvent): void;

Parameters

List of parameters
Parameter Type Description
event ITelemetryBaseEvent

Returns:

void

sendErrorEvent

Signature:

sendErrorEvent(event: ITelemetryErrorEvent, error?: any): void;

Parameters

List of parameters
Parameter Type Description
event ITelemetryErrorEvent
error any

Returns:

void

sendPerformanceEvent

Signature:

sendPerformanceEvent(event: ITelemetryPerformanceEvent, error?: any): void;

Parameters

List of parameters
Parameter Type Description
event ITelemetryPerformanceEvent
error any

Returns:

void

sendTelemetryEvent

Signature:

sendTelemetryEvent(event: ITelemetryGenericEvent, error?: any): void;

Parameters

List of parameters
Parameter Type Description
event ITelemetryGenericEvent
error any

Returns:

void