Properties
The list of messages that have been logged.
Called when the log has been cleared.
Emitted when a code error message has been logged.
Emitted when a message has been logged.
Methods
static alert(…msg)
Present an Alert modal dialog with the given message
msg* |
* | message data to write |
static assert(condition, text)
If condition is false, log the message and present an alert message.
condition |
bool | |
text |
String |
static clear()
Clear the logged messages.
static codeError(error, line, resource, extra)
Print error code and emit an event so it can be traced.
error |
String | |
line |
number | |
resource |
String | |
extra |
* |
static debug(…msg)
Log a message with an Debug tag.
msg* |
* | message data to write |
static error(…msg)
Log a message with an Error tag.
msg* |
* | message data to write |
static info(…msg)
Log a message with an Info tag.
msg* |
* | message data to write |
static messageToString(args) → String
Convert message data, either a string or anything that JSON can stringify, to a string.
args |
* | message data to convert |
- String
static warning(…msg)
Log a message with an Warning tag.
msg* |
* | message data to write |
static write(…msg)
Log a message directly.
msg* |
* | message data to write |