mirror of
https://git.stamm.me/OpenServer/NodeLogging.git
synced 2024-11-15 02:11:04 +00:00
19 lines
621 B
TypeScript
19 lines
621 B
TypeScript
import { Logging } from "./index";
|
|
import { randomBytes } from "crypto";
|
|
|
|
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)
|
|
Logging.console_out = false;
|
|
Logging.waitForSetup().then(() => {
|
|
for (let i = 0; i < 7000; i++) {
|
|
Logging.log(randomBytes(50000).toString("hex"))
|
|
}
|
|
}); |