Skip to content

Commit

Permalink
feat(logger): add static level getter
Browse files Browse the repository at this point in the history
Allows level to be checked when using the global logger
  • Loading branch information
justin-caldicott committed Jul 9, 2019
1 parent e3d2518 commit 9f18c0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lambda-powertools-logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ class Logger {
static resetLevel () {
globalLogger.resetLevel()
}

static get level() {
return globalLogger.level;
}
}

const globalLogger = new Logger()
Expand Down

0 comments on commit 9f18c0d

Please sign in to comment.