Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
f0cii committed Jul 14, 2020
1 parent 002892d commit 36a6053
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@ func Infof(template string, args ...interface{}) {
logger.Infof(template, args...)
}

func Warn(args ...interface{}) {
if logger == nil {
return
}

logger.Warn(args...)
}

func Warnf(template string, args ...interface{}) {
if logger == nil {
return
}

logger.Warnf(template, args...)
}

func Error(args ...interface{}) {
if logger == nil {
return
Expand Down

0 comments on commit 36a6053

Please sign in to comment.