diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-24 15:25:04 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-24 15:25:04 +0530 |
commit | 01e83df471802d3253953b00672af0bc879403fe (patch) | |
tree | 80f763be28055139221fafb50e8ded7a89b8bc3d /src/util/logging.ts | |
parent | c4d289956275677b24459237d13ed8c23a606079 (diff) | |
download | wallet-core-01e83df471802d3253953b00672af0bc879403fe.tar.xz |
helpers for auditor integration test
Diffstat (limited to 'src/util/logging.ts')
-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) } |