Class: SilentLoggingConnector
Class for performing logging operations to nowhere.
Implements
Constructors
Constructor
new SilentLoggingConnector():
SilentLoggingConnector
Returns
SilentLoggingConnector
Properties
NAMESPACE
readonlystaticNAMESPACE:string="silent"
The namespace for the logging connector.
CLASS_NAME
readonlystaticCLASS_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
The entry to log.
Returns
Promise<void>
Nothing.
Implementation of
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.