Logger
Logger
is a helper class to log data in a nice and consistent way. An instance is available on BdApi.
Properties
Methods
debug
Logs used for debugging purposes.
Parameter | Type | Description |
---|---|---|
module | string | Name of the calling module. |
message | ...any | Messages to have logged. |
Returns: void
error
Logs an error message.
Parameter | Type | Description |
---|---|---|
pluginName | string | Name of the calling module |
message | ...any | Messages to have logged. |
Returns: void
info
Logs an informational message.
Parameter | Type | Description |
---|---|---|
module | string | Name of the calling module. |
message | ...any | Messages to have logged. |
Returns: void
log
Logs used for basic loggin.
Parameter | Type | Description |
---|---|---|
module | string | Name of the calling module. |
message | ...any | Messages to have logged. |
Returns: void
stacktrace
Logs an error using a collapsed error group with stacktrace.
Parameter | Type | Description |
---|---|---|
pluginName | string | Name of the calling module. |
message | string | Message or error to have logged. |
error | Error | Error object to log with the message. |
Returns: void
warn
Logs a warning message.
Parameter | Type | Description |
---|---|---|
module | string | Name of the calling module. |
message | ...any | Messages to have logged. |
Returns: void