Class: Logger

Logger()

Abstract interface for logging information from a component. This is intended to allow prefixed messages to be optionally shown in the console to help debug.

Methods

info()

Log an informational bit of information

Source:

log(level, …args)

Subclasses must implement this.

Parameters:
Name Type Attributes Description
level string

'info' or 'warn' to indicate the logging level

args * <repeatable>

args to pass directly to console.log

Source:

warn()

Log a warning

Source:

(static) forPrefix(stringOrFalse) → {Logger}

Create a logger for the given prefix.

Parameters:
Name Type Description
stringOrFalse string | false

if false,returns a BufferedLogger. Otherwise, returns a PrefixedLogger using the param's value as the prefix.

Source:
Returns:
Type
Logger