Skip to content

Commit

Permalink
Support numeric loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Apr 23, 2024
1 parent 27ac312 commit 181b153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 181b153

Please sign in to comment.