This commit is contained in:
Fabian
2019-11-17 16:44:57 +01:00
6 changed files with 129 additions and 94 deletions

View File

@ -1,5 +1,4 @@
import { Logging, LoggingBase } from ".";
import { LoggingTypes } from "./types";
import { Logging, LoggingBase, LoggingTypes, Colors, withColor } from ".";
Logging.log("test")
Logging.log("i", "am", { a: "an" }, 1000);
@ -9,6 +8,9 @@ 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")
Logging.log(withColor(Colors.MAGENTA, "This text should be magenta!"), "This not!")
Logging.log(withColor(Colors.MAGENTA, { somekey: "Some value" }))
let err = new Error()
if (typeof err.stack !== "string") console.log("Stacktrace invalid", err.stack)