Constructor
new Logger(options)
The constructor for the Logger
Parameters:
Name | Type | Description |
---|---|---|
options | LoggerOptions | The options of the logger |
- Source
Members
options :LoggerOptions
The options for the logger
Type:
- Source
sentry :Sentry|null
The Sentry client
Type:
- Sentry |
null
- Source
webhooks :Array.<WebhookClient>
The array with all webhook clients
Type:
- Array.
<WebhookClient>
- Source
Methods
debug(string) → {Logger}
Debug
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger
error(string) → {Logger}
Error
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger
fail(string) → {Logger}
Fail
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger
info(string) → {Logger}
Info
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger
success(string) → {Logger}
Success
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger
warn(string) → {Logger}
Warn
Parameters:
Name | Type | Description |
---|---|---|
string | String | The string that should be logged |
- Source
Returns:
- Type:
- Logger