Skip to content

Commit

Permalink
Update log.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mlycore authored Jul 9, 2019
1 parent c7c72df commit 0e01de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ type LoggerIface interface {
Log(level int, v ...interface{})
Logf(level int, formater string, v ...interface{})
}
// SetLevel
func SetLevel(lv string) {
l.SetLevelByName(lv)
}

// SetLevel set the level of log
func (l *Logger) SetLevel(level int) {
Expand Down

0 comments on commit 0e01de2

Please sign in to comment.