Archived
1
0

Fix failure due to included files when using vscode's log level enum

This commit is contained in:
Asher
2019-02-07 14:17:14 -06:00
parent e4ff8e1c63
commit 73762017c8
2 changed files with 10 additions and 22 deletions

View File

@ -2,10 +2,11 @@
* Log level.
*/
export enum Level {
Debug = 0,
Info = 1,
Warn = 2,
Error = 3,
Trace,
Debug,
Info,
Warning,
Error,
}
/**
@ -229,7 +230,7 @@ export class Logger {
switch (envLevel) {
case "debug": this.level = Level.Debug; break;
case "info": this.level = Level.Info; break;
case "warn": this.level = Level.Warn; break;
case "warn": this.level = Level.Warning; break;
case "error": this.level = Level.Error; break;
}
}
@ -272,7 +273,7 @@ export class Logger {
message,
fields,
tagColor: "#FF9D00",
level: Level.Warn,
level: Level.Warning,
});
}