2019-04-02 23:55:04 +00:00
|
|
|
import { Logging, LoggingBase } from ".";
|
|
|
|
|
|
|
|
Logging.log("test")
|
|
|
|
Logging.log("i", "am", { a: "an" }, 1000);
|
|
|
|
Logging.error(new Error("fehler 001"));
|
|
|
|
Logging.debug("Some Debug infos");
|
|
|
|
Logging.errorMessage("i", "am", "an", "error");
|
|
|
|
|
|
|
|
Logging.log("\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m TEST \x1b[31m\x1b[31m\x1b[31m")
|
|
|
|
|
|
|
|
let err = new Error()
|
|
|
|
if (typeof err.stack !== "string") console.log("Stacktrace invalid", err.stack)
|
|
|
|
|
|
|
|
let cus = new LoggingBase({ name: "test" });
|
|
|
|
cus.log("Hello from custom Logger")
|
2019-04-05 02:22:52 +00:00
|
|
|
cus.log("This has some %c symbols inside of it!");
|
2019-04-02 23:55:04 +00:00
|
|
|
|
|
|
|
let cus2 = new LoggingBase("test2");
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
|
|
|
|
let cus22 = new LoggingBase("test2");
|
|
|
|
cus22.log("Hello from custom Logger 22")
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
cus22.log("Hello from custom Logger 22")
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
cus22.log("Hello from custom Logger 22")
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
cus22.log("Hello from custom Logger 22")
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
cus22.log("Hello from custom Logger 22")
|
|
|
|
cus2.log("Hello from custom Logger 2")
|