1
0
mirror of https://git.hibas.dev/OpenServer/NodeLogging.git synced 2025-07-01 12:41:11 +00:00

Fixing wrong filename change on custom Logger

This commit is contained in:
Fabian Stamm
2018-09-01 19:17:59 +02:00
parent e973ab7e59
commit 88d045aa9c
7 changed files with 11 additions and 7 deletions

View File

@ -65,7 +65,7 @@ export class LoggingBase {
}
if (options.errorfile === undefined) {
options.logfile = `./logs/error.${options.name}.log`
options.errorfile = `./logs/error.${options.name}.log`
}
}
this.config = Object.assign(<LoggingBaseOptions>{

View File

@ -1,4 +1,4 @@
import { Logging } from "./index";
import { Logging, LoggingBase } from "./index";
import { randomBytes } from "crypto";
Logging.log("test")
@ -16,4 +16,6 @@ Logging.waitForSetup().then(() => {
for (let i = 0; i < 7000; i++) {
Logging.log(randomBytes(50000).toString("hex"))
}
});
});
let cus = new LoggingBase({ name: "test" });
cus.log("Hello from custom Logger")