Skip to content

Commit

Permalink
Export logger's set level function to address sirupsen#503.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Jarvis committed Jul 7, 2017
1 parent 307e4b9 commit 3866113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exported.go
Expand Up @@ -31,7 +31,7 @@ func SetFormatter(formatter Formatter) {
func SetLevel(level Level) {
std.mu.Lock()
defer std.mu.Unlock()
std.setLevel(level)
std.SetLevel(level)
}

// GetLevel returns the standard logger level.
Expand Down
2 changes: 1 addition & 1 deletion logger.go
Expand Up @@ -312,6 +312,6 @@ func (logger *Logger) level() Level {
return Level(atomic.LoadUint32((*uint32)(&logger.Level)))
}

func (logger *Logger) setLevel(level Level) {
func (logger *Logger) SetLevel(level Level) {
atomic.StoreUint32((*uint32)(&logger.Level), uint32(level))
}

0 comments on commit 3866113

Please sign in to comment.