Skip to content

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.

ParameterTypeDescription
modulestringName of the calling module.
message...anyMessages to have logged.

Returns: void


error

Logs an error message.

ParameterTypeDescription
pluginNamestringName of the calling module
message...anyMessages to have logged.

Returns: void


info

Logs an informational message.

ParameterTypeDescription
modulestringName of the calling module.
message...anyMessages to have logged.

Returns: void


log

Logs used for basic loggin.

ParameterTypeDescription
modulestringName of the calling module.
message...anyMessages to have logged.

Returns: void


stacktrace

Logs an error using a collapsed error group with stacktrace.

ParameterTypeDescription
pluginNamestringName of the calling module.
messagestringMessage or error to have logged.
errorErrorError object to log with the message.

Returns: void


warn

Logs a warning message.

ParameterTypeDescription
modulestringName of the calling module.
message...anyMessages to have logged.

Returns: void