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
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the software, will default to Tools Gateway |
level | string | The debug level of the message |
message | any | The message |
data? | any | Additional data or details about the message |
Returns
void