aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-24 15:25:04 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-24 15:25:04 +0530
commit01e83df471802d3253953b00672af0bc879403fe (patch)
tree80f763be28055139221fafb50e8ded7a89b8bc3d /src/util
parentc4d289956275677b24459237d13ed8c23a606079 (diff)
downloadwallet-core-01e83df471802d3253953b00672af0bc879403fe.tar.xz
helpers for auditor integration test
Diffstat (limited to 'src/util')
-rw-r--r--src/util/logging.ts6
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)
}