2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
5 export var ConsoleTest = {
7 console.log("Hello world!");
8 console.createInstance().log("Hello world!");
10 let c = console.createInstance({
12 innerID: "CUSTOM INNER",
17 c.log("Hello world!");
18 c.trace("Hello world!");
21 .createInstance({ innerID: "LEVEL", maxLogLevel: "Off" })
24 .createInstance({ innerID: "LEVEL", maxLogLevel: "All" })
29 maxLogLevelPref: "pref.test.console",
33 this.c2 = console.createInstance({
36 maxLogLevelPref: "pref.test.console.notset",
38 this.c2.log("Invisible!");
39 this.c2.warn("Hello world!");
43 this.c2.log("Hello world!");