Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Feb 11, 2019
1 parent b3184ef commit 156c404
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ func SetLevel(l zapcore.Level) {
defer _globalMu.Unlock()
_globalR.Level.SetLevel(l)
}

// GetLevel gets the logging level.
func GetLevel() zapcore.Level {
_globalMu.RLock()
defer _globalMu.RUnlock()
return _globalR.Level.Level()
}

0 comments on commit 156c404

Please sign in to comment.