Skip to content

Commit

Permalink
Merge pull request #525 from singh1203/singh1203/Debugf
Browse files Browse the repository at this point in the history
feat: Add Debugf function to logger
  • Loading branch information
Mohd Uzair authored Jul 1, 2024
2 parents 58d7ff2 + 3a1361a commit 8b2f3ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type Handler interface {
Info(description ...interface{})
Infof(format string, args ...interface{})
Debug(description ...interface{})
Debugf(format string, args ...interface{})
Warn(err error)
Warnf(format string, args ...interface{})
Error(err error)
Expand Down Expand Up @@ -127,4 +128,8 @@ func (l *Logger) Infof(format string, args ...interface{}) {

func (l *Logger) Warnf(format string, args ...interface{}) {
l.handler.Log(logrus.WarnLevel, fmt.Sprintf(format, args...))
}

func (l *Logger) Debugf(format string, args ...interface{}) {
l.handler.Log(logrus.DebugLevel, fmt.Sprintf(format, args...))
}

0 comments on commit 8b2f3ab

Please sign in to comment.