From 181b153a1b07714193d0dba315dbb350a9b246bf Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Tue, 23 Apr 2024 09:54:50 -0400 Subject: [PATCH] Support numeric loglevel --- src/Logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logger.ts b/src/Logger.ts index cac4e94..cfb4112 100644 --- a/src/Logger.ts +++ b/src/Logger.ts @@ -294,7 +294,7 @@ export class Logger { /** * Writes to the log (if logLevel matches), and also provides a function that can be called to mark the end of a time. */ - public timeStart(logLevel: LogLevel, ...messages: unknown[]) { + public timeStart(logLevel: LogLevel | LogLevelNumeric, ...messages: unknown[]) { //call the log if loglevel is in range if (this.isLogLevelEnabled(logLevel)) { const stopwatch = new Stopwatch();