Util:Logging
Source: logging.ts:6
Logging utilities for console and BetterStack integration
Static Methods
logWelcomeMessage(): void
staticasync
logging.ts:49Log a welcome message in the console
Returns
void
log(...messages: Array.<unknown>)
static
logging.ts:91Log an INFO message with a timestamp
Parameters
messages(Array.<unknown>) — Messages to log
debug(...messages: Array.<unknown>)
static
logging.ts:107Log a DEBUG message with a timestamp
Parameters
messages(Array.<unknown>) — Messages to log
warn(...messages: Array.<unknown>)
static
logging.ts:124Log a WARN message with a timestamp
Parameters
messages(Array.<unknown>) — Messages to log
error(message: unknown, errorCode?: string)
static
logging.ts:141Log an ERROR message with a timestamp and error code
Parameters
message(unknown) — Message to logerrorCode(string, optional) — Error code (defaults to UNKNOWN_ERROR)
logRequest(status: number, time: number, url: string)
static
logging.ts:160Log request results
Parameters
status(number) — Response status codetime(number) — Milliseconds between request and responseurl(string) — Path of the request