get_logger must return a function

This commit is contained in:
2024-05-20 01:14:38 +02:00
parent 4290cd398c
commit a1ec9d588d
+1 -1
View File
@@ -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