diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/logging.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/logging.ts b/src/util/logging.ts index 309d1593b..4560105f4 100644 --- a/src/util/logging.ts +++ b/src/util/logging.ts @@ -19,6 +19,12 @@ export class Logger { info(message: string, ...args: any[]) { console.log(`${new Date().toISOString()} ${this.tag} INFO ` + message, ...args); } + warn(message: string, ...args: any[]) { + console.log(`${new Date().toISOString()} ${this.tag} WARN ` + message, ...args); + } + error(message: string, ...args: any[]) { + console.log(`${new Date().toISOString()} ${this.tag} ERROR ` + message, ...args); + } trace(message: any, ...args: any[]) { console.log(`${new Date().toISOString()} ${this.tag} TRACE ` + message, ...args) } |