Javascript logging

From wikinotes

Logging in javascript is exposed through console.

Log Levels

You can change the emitted message's log level

console.error("error");
console.warn("warning");
console.log("info");
console.debug("debug");

The log level itself appears to be controlled by the browser's UI.