Logger

The logger class

Constructor

new Logger(options)

The constructor for the Logger

Parameters:
NameTypeDescription
optionsLoggerOptions

The options of the logger

Members

options :LoggerOptions

The options for the logger

sentry :Sentry|null

The Sentry client

Type:
  • Sentry | null

webhooks :Array.<WebhookClient>

The array with all webhook clients

Type:
  • Array.<WebhookClient>

Methods

debug(string) → {Logger}

Debug

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger

error(string) → {Logger}

Error

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger

fail(string) → {Logger}

Fail

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger

info(string) → {Logger}

Info

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger

success(string) → {Logger}

Success

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger

warn(string) → {Logger}

Warn

Parameters:
NameTypeDescription
stringString

The string that should be logged

Returns:
Type: 
Logger