Skip to content

Commit

Permalink
Merge pull request #1 from MrLYC/logging
Browse files Browse the repository at this point in the history
feat: add debugf for log package
  • Loading branch information
MrLYC committed Jun 14, 2022
2 parents 160e058 + 7acc04a commit 940d3db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func getLogger() *zap.SugaredLogger {
return logger
}

func Debugf(template string, args ...interface{}) {
getLogger().Debugf(template, args...)
}

func Infof(template string, args ...interface{}) {
getLogger().Infof(template, args...)
}
Expand Down

0 comments on commit 940d3db

Please sign in to comment.