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
Method | Modifiers | Description |
---|---|---|
debugAssert(condition, event) | ||
logException(event, exception) | ||
logGenericError(eventName, error) | ||
send(event) | ||
sendErrorEvent(event, error) | ||
sendPerformanceEvent(event, error) | ||
sendTelemetryEvent(event, error) | ||
shipAssert(condition, event) |
Methods
debugAssert
Signature:
debugAssert(condition: boolean, event?: ITelemetryErrorEvent): void;
Parameters
Parameter | Type | Description |
---|---|---|
condition | boolean | |
event | ITelemetryErrorEvent |
Returns:
void
logException
Signature:
logException(event: ITelemetryErrorEvent, exception: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ITelemetryErrorEvent | |
exception | any |
Returns:
void
logGenericError
Signature:
logGenericError(eventName: string, error: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
eventName | string | |
error | any |
Returns:
void
send
Signature:
send(event: ITelemetryBaseEvent): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ITelemetryBaseEvent |
Returns:
void
sendErrorEvent
Signature:
sendErrorEvent(event: ITelemetryErrorEvent, error?: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ITelemetryErrorEvent | |
error | any |
Returns:
void
sendPerformanceEvent
Signature:
sendPerformanceEvent(event: ITelemetryPerformanceEvent, error?: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ITelemetryPerformanceEvent | |
error | any |
Returns:
void
sendTelemetryEvent
Signature:
sendTelemetryEvent(event: ITelemetryGenericEvent, error?: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ITelemetryGenericEvent | |
error | any |
Returns:
void
shipAssert
Signature:
shipAssert(condition: boolean, event?: ITelemetryErrorEvent): void;
Parameters
Parameter | Type | Description |
---|---|---|
condition | boolean | |
event | ITelemetryErrorEvent |
Returns:
void