Skip to main content

Class: SilentLoggingConnector

Class for performing logging operations to nowhere.

Implements

Constructors

new SilentLoggingConnector()

new SilentLoggingConnector(): SilentLoggingConnector

Returns

SilentLoggingConnector

Properties

NAMESPACE

readonly static NAMESPACE: string = "silent"

The namespace for the logging connector.


CLASS_NAME

readonly CLASS_NAME: string

Runtime name for the class.

Implementation of

ILoggingConnector.CLASS_NAME

Methods

log()

log(logEntry): Promise<void>

Log an entry to the connector.

Parameters

logEntry: ILogEntry

The entry to log.

Returns

Promise<void>

Nothing.

Implementation of

ILoggingConnector.log


query()

query(conditions?, sortProperties?, properties?, cursor?, pageSize?): Promise<object>

Query the log entries.

Parameters

conditions?: EntityCondition<ILogEntry>

The conditions to match for the entities.

sortProperties?: object[]

The optional sort order.

properties?: keyof ILogEntry[]

The optional keys to return, defaults to all.

cursor?: string

The cursor to request the next page of entities.

pageSize?: number

The maximum number of entities in a page.

Returns

Promise<object>

All the entities for the storage matching the conditions, and a cursor which can be used to request more entities.

entities

entities: Partial<ILogEntry>[]

The entities, which can be partial if a limited keys list was provided.

cursor?

optional cursor: string

An optional cursor, when defined can be used to call find to get more entities.

Throws

NotImplementedError if the implementation does not support retrieval.

Implementation of

ILoggingConnector.query