Skip to main content

Class: Logger

Defined in: util/Logger.ts:15

Handles sending logs to the logging service

Constructors

Constructor

new Logger(): Logger;

Defined in: util/Logger.ts:31

Returns

Logger

Methods

flush()

flush(): Promise<void>;

Defined in: util/Logger.ts:97

Send the list of log messages to the logging service. Upon completion, will clear the log messages to allow new ones to be added.

Returns

Promise<void>


log()

log(
name,
level,
message,
data?): void;

Defined in: util/Logger.ts:70

Adds a new log to the Logger messages. If the list of messages becomes too long or has too many characters after a new message is added, the Logger will flush the messages

Parameters

ParameterTypeDescription
namestringName of the software, will default to Tools Gateway
levelstringThe debug level of the message
messageanyThe message
data?anyAdditional data or details about the message

Returns

void