diff --git a/package.json b/package.json index eaa9832..a980a6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.4.0", + "version": "2.4.1", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index a0024fe..b320156 100644 --- a/src/base.ts +++ b/src/base.ts @@ -488,7 +488,6 @@ function getCallerFile() { while (stack.length) { let caller_file = stack.shift(); if (current_file !== caller_file.getFileName()) { - console.log(Object.keys(caller_file)); return { file: caller_file.getFileName(), line: caller_file.getLineNumber(), diff --git a/src/consolewriter.ts b/src/consolewriter.ts index 9f4067a..ed10e17 100644 --- a/src/consolewriter.ts +++ b/src/consolewriter.ts @@ -157,7 +157,7 @@ export class ConsoleAdapter implements Adapter { console.log(prefix + text); }); } else { - message.text.raw.forEach(console.log.bind(console)); + message.text.raw.forEach((line) => console.log(prefix + line)); } } }