Skip to content

Commit

Permalink
expose hasLogger api
Browse files Browse the repository at this point in the history
  • Loading branch information
Cap32 committed Oct 24, 2017
1 parent a6428e5 commit d7a0e53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ export function getLogger(category) {
return logSystem.getLogger(category);
}

export function hasLogger(category) {
return logSystem.hasLogger(category);
}

export function createLogger(category, description) {
if (logSystem.hasLogger(category)) {
throw new Error(
Expand Down

0 comments on commit d7a0e53

Please sign in to comment.