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. |
(async) logToServer(type, note, data)
Register an additional log output.
Parameters:
Name | Type | Description |
---|---|---|
type |
"Exception" | "Test" | "Error" | "Info" | |
note |
string | |
data |
object |
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. |
logToServer |
function | log to server. |
Custom log output object.
Type:
- Object