From a1ec9d588d63e647a0d4d16ad4df7f724bc5dab6 Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Mon, 20 May 2024 01:14:38 +0200 Subject: [PATCH] get_logger must return a function --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index cc3dd25..9e66db1 100644 --- a/index.ts +++ b/index.ts @@ -8,7 +8,7 @@ export class Console implements Writer { readonly _options: WriterOptions ) {} - private static get_logger(level: Level) { + private static get_logger(level: Level) : (...data: any[]) => void { switch (level) { case Level.DEBUG: return console.debug case Level.TRACE: return console.debug