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:
@ -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>{
|
||||
|
@ -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")
|
Reference in New Issue
Block a user