Logging
say
say(message)
Logs a message to the console. Equivalent to console.log(message)
.
say.info
console.info("Information");
Logs some information to the console. Equivalent to console.info
.
say.table
say.table(arg1, arg2, ...)
Logs a table to the console. Equivalent to console.table(arg1, arg2, ...)
.
say.group
say.group(label)
Starts a new console group with the specified label. Equivalent to console.group(label)
.
say.clear
say.clear()
Clears the console. Equivalent to console.clear()
.
say.trace
say.trace()
Logs a stack trace to the console. Equivalent to console.trace()
.
say.time
say.time(label)
Starts a timer with the specified label. Equivalent to console.time(label)
.
say.tend
say.tend(label)
Stops the timer with the specified label and logs the elapsed time. Equivalent to console.timeEnd(label)
.
say.tlog
say.tlog(label)
Logs the elapsed time for the specified timer without stopping it. Equivalent to console.timeLog(label)
.
say.tstamp
say.tstamp(label)
Logs a timestamp with the specified label. Equivalent to console.timeStamp(label)
.
say.amber
say.amber(message)
Logs a warning message in amber color. Equivalent to console.warn(message)
.
warn
warn(message)
Logs an error message to the console. Equivalent to console.error(message)
.
This logs an error because console.error is more commonly used than console.warn, and warn is a briefer keyword.