Logger

Logger

new Logger(prefix, debugMode)

Source:

Logger

Parameters:
Name Type Description
prefix string

Prefix to use

debugMode boolean

Enable debug mode

Methods

debug(…args) → {void}

Source:

Logs as debug (only if debug mode is enabled)

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void

err(…args) → {void}

Source:

Logs as error

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void

fail(…args) → {void}

Source:

Logs as fail

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void

info(…args) → {void}

Source:

Logs as info

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void

log(…args) → {void}

Source:

Normal log

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void

msg(msg) → {void}

Source:

Logs a message

Parameters:
Name Type Description
msg Eris.Message
Returns:
Type
void

ok(…args) → {void}

Source:

Logs as ok

Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
void