Members
(constant) _status
PropertiesName | Type | Description |
---|---|---|
print | function | Prints a message to the console with the current tone |
log | function | Logs a message to the console |
info | function | Logs an info message to the console |
debug | function | Logs a debug message to the console |
warn | function | Logs a warning message to the console |
error | function | Logs an error message to the console |
_getTone | function | Gets the current tone |
_setTone | function | Sets the current tone |
_resetTone | function | Resets the current tone to "info" |
- Source
_status.log("Hello world!");
Methods
_log(args)
Log function, takes any number of arguments. If the first character is nonstandard and followed by a space, it'll use that as a tag
Name | Type | Description |
---|---|---|
args | any | Any number of arguments |
- Source
_log("Hello world!");
_statuslog()
A bound version of _log with the tone set to "info"
- Source
_statuslog("Hello world!");
compatDateObj(date) → {Date}
Converts a date string to a Date object (in a format that Safari can handle)
Name | Type | Description |
---|---|---|
date | String |
- Source
- Type:
- Date
downloadLogData()
downloads a file with given log data
- Source
getFirstNonStandardCharacter()
Imperfect helper for _status.log()
- Source
msToTime(ms) → {String}
Converts milliseconds to hours:minutes:seconds timestamp; only includes hours if non-zero
Name | Type | Description |
---|---|---|
ms | Number |
- Source
- Type:
- String
save()
Save log to file
- Source
state()
Function to create a clean store state, used for initialization. Will attempt to load from window.localStorage variable to save on firebase calls -> isn't always stable after app update that changes state keyings
- Source