2017-08-23 16:45:03 +02:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const index_1 = require("./index");
|
2018-02-18 16:00:16 +01:00
|
|
|
const crypto_1 = require("crypto");
|
2017-08-23 16:45:03 +02:00
|
|
|
index_1.Logging.log("test");
|
|
|
|
index_1.Logging.log("i", "am", { a: "an" }, 1000);
|
|
|
|
index_1.Logging.error(new Error("fehler 001"));
|
|
|
|
index_1.Logging.debug("Some Debug infos");
|
|
|
|
index_1.Logging.errorMessage("i", "am", "an", "error");
|
2018-04-09 20:02:34 +02:00
|
|
|
index_1.Logging.log("\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m\x1b[31m TEST \x1b[31m\x1b[31m\x1b[31m");
|
2018-05-10 20:11:53 +02:00
|
|
|
let err = new Error();
|
|
|
|
if (typeof err.stack !== "string")
|
|
|
|
console.log("Stacktrace invalid", err.stack);
|
2018-08-09 19:52:01 +02:00
|
|
|
index_1.Logging.console_out = false;
|
|
|
|
index_1.Logging.waitForSetup().then(() => {
|
|
|
|
for (let i = 0; i < 7000; i++) {
|
|
|
|
index_1.Logging.log(crypto_1.randomBytes(50000).toString("hex"));
|
|
|
|
}
|
|
|
|
});
|
2018-09-01 19:17:59 +02:00
|
|
|
let cus = new index_1.LoggingBase({ name: "test" });
|
|
|
|
cus.log("Hello from custom Logger");
|
2017-08-23 16:45:03 +02:00
|
|
|
//# sourceMappingURL=test.js.map
|