Skip to content

Commit

Permalink
Adding debug to logging capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Apr 2, 2021
1 parent 6b26837 commit 12c2ab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
class DummyLogger {
log() {}

debug() {}

info() {}

warn() {}
Expand All @@ -26,6 +28,10 @@ export function setLogger(logger = new DummyLogger()) {
LOGGER = logger;
}

export function debug(...args) {
return LOGGER.debug(...args);
}

export function log(...args) {
return LOGGER.log(...args);
}
Expand Down

0 comments on commit 12c2ab3

Please sign in to comment.