Skip to main content

Class: SilentLoggingConnector

Class for performing logging operations to nowhere.

Implements​

Constructors​

Constructor​

new SilentLoggingConnector(): SilentLoggingConnector

Returns​

SilentLoggingConnector

Properties​

NAMESPACE​

readonly static NAMESPACE: string = "silent"

The namespace for the logging connector.


CLASS_NAME​

readonly static CLASS_NAME: string

Runtime name for the class.

Methods​

className()​

className(): string

Returns the class name of the component.

Returns​

string

The class name of the component.

Implementation of​

ILoggingConnector.className


log()​

log(logEntry): Promise<void>

Log an entry to the connector.

Parameters​

logEntry​

ILogEntry

The entry to log.

Returns​

Promise<void>

A promise that resolves immediately without performing any output.

Implementation of​

ILoggingConnector.log


query()​

query(conditions?, sortProperties?, properties?, cursor?, limit?): Promise<{ entities: Partial<ILogEntry>[]; cursor?: string; }>

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 chunk of entities.

limit?​

number

Limit the number of entities to return.

Returns​

Promise<{ entities: Partial<ILogEntry>[]; cursor?: string; }>

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

Implementation of​

ILoggingConnector.query