diff options
author | Florian Dold <florian@dold.me> | 2021-08-19 16:06:09 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-19 16:06:09 +0200 |
commit | 8929086ebf6f16f74e97bfdac67f6717114c8ae9 (patch) | |
tree | d648a65294c3829faa2be8916660773b31a1dcf2 /packages/taler-util/src/logging.ts | |
parent | c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6 (diff) | |
download | wallet-core-8929086ebf6f16f74e97bfdac67f6717114c8ae9.tar.xz |
logging
Diffstat (limited to 'packages/taler-util/src/logging.ts')
-rw-r--r-- | packages/taler-util/src/logging.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/taler-util/src/logging.ts b/packages/taler-util/src/logging.ts index 532174fd6..0037d95a3 100644 --- a/packages/taler-util/src/logging.ts +++ b/packages/taler-util/src/logging.ts @@ -56,6 +56,21 @@ function writeNodeLog( export class Logger { constructor(private tag: string) {} + shouldLogTrace() { + // FIXME: Implement logic to check loglevel + return true; + } + + shouldLogInfo() { + // FIXME: Implement logic to check loglevel + return true; + } + + shouldLogWarn() { + // FIXME: Implement logic to check loglevel + return true; + } + info(message: string, ...args: any[]): void { if (isNode) { writeNodeLog(message, this.tag, "INFO", args); |