2018-09-01 17:17:59 +00:00
|
|
|
import { Logging, LoggingBase } from "./index";
|
2018-02-18 15:00:16 +00:00
|
|
|
import { randomBytes } from "crypto";
|
2017-08-23 14:45:03 +00:00
|
|
|
|
|
|
|
Logging.log("test")
|
|
|
|
Logging.log("i", "am", { a: "an" }, 1000);
|
|
|
|
Logging.error(new Error("fehler 001"));
|
|
|
|
Logging.debug("Some Debug infos");
|
2018-02-18 15:00:16 +00:00
|
|
|
Logging.errorMessage("i", "am", "an", "error");
|
2018-04-09 18:02:34 +00:00
|
|
|
|
|
|
|
Logging.log("\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m TEST \x1b[31m\x1b[31m\x1b[31m")
|
|
|
|
|
2018-05-10 18:11:53 +00:00
|
|
|
let err = new Error()
|
|
|
|
if (typeof err.stack !== "string") console.log("Stacktrace invalid", err.stack)
|
2018-09-28 10:37:13 +00:00
|
|
|
|
2018-09-01 17:17:59 +00:00
|
|
|
let cus = new LoggingBase({ name: "test" });
|
2018-09-28 10:37:13 +00:00
|
|
|
cus.log("Hello from custom Logger")
|
|
|
|
|
|
|
|
let cus2 = new LoggingBase("test2");
|
|
|
|
cus2.log("Hello from custom Logger 2")
|
|
|
|
|
|
|
|
// Logging.console_out = false;
|
|
|
|
// Logging.waitForSetup().then(() => {
|
|
|
|
// for (let i = 0; i < 7000; i++) {
|
|
|
|
// Logging.log(randomBytes(50000).toString("hex"))
|
|
|
|
// }
|
|
|
|
// });
|