Logger

Logger

Wrapper for console.log. Automatically displays uncatched exceptions on the UI if api is initialized with flag
"logToScreen".

Methods

error(args)

Log error messages.

Parameters:
Name Type Description
args Array.<string>

log messages.

info(args)

Log info messages.

Parameters:
Name Type Description
args Array.<string>

log messages.

log(args)

Log normal messages.

Parameters:
Name Type Description
args Array.<string>

log messages.

register(output)

Register an additional log output.

Parameters:
Name Type Description
output Logger#LogOutput

warn(args)

Log warning messages.

Parameters:
Name Type Description
args Array.<string>

log messages.

Type Definitions

LogOutput

Properties:
Name Type Description
log function

log normal messages.

warn function

log warn messages.

info function

log info messages.

error function

log error messages.

Custom log output object.

Type:
  • Object