Members

(constant) _status

Properties
NameTypeDescription
printfunction

Prints a message to the console with the current tone

logfunction

Logs a message to the console

infofunction

Logs an info message to the console

debugfunction

Logs a debug message to the console

warnfunction

Logs a warning message to the console

errorfunction

Logs an error message to the console

_getTonefunction

Gets the current tone

_setTonefunction

Sets the current tone

_resetTonefunction

Resets the current tone to "info"

Example
_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

Parameters:
NameTypeDescription
argsany

Any number of arguments

Example
_log("Hello world!");

_statuslog()

A bound version of _log with the tone set to "info"

Example
_statuslog("Hello world!");

compatDateObj(date) → {Date}

Converts a date string to a Date object (in a format that Safari can handle)

Parameters:
NameTypeDescription
dateString
Returns:
Type: 
Date

downloadLogData()

downloads a file with given log data

getFirstNonStandardCharacter()

Imperfect helper for _status.log()

msToTime(ms) → {String}

Converts milliseconds to hours:minutes:seconds timestamp; only includes hours if non-zero

Parameters:
NameTypeDescription
msNumber
Returns:
Type: 
String

save()

Save log to file

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