1
0
mirror of https://git.stamm.me/OpenServer/NodeLogging.git synced 2024-11-15 06:51:04 +00:00
nodelogging/src/test.ts

15 lines
465 B
TypeScript
Raw Normal View History

2017-08-23 14:45:03 +00:00
import { Logging } 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-02-18 15:00:16 +00:00
Logging.stdout = false;
for (let i = 0; i < 7000; i++) {
Logging.log(randomBytes(50000).toString("hex"))
}