Skip to content

Commit 8b2f3ab

Browse files
author
Mohd Uzair
authored
Merge pull request #525 from singh1203/singh1203/Debugf
feat: Add Debugf function to logger
2 parents 58d7ff2 + 3a1361a commit 8b2f3ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

logger/logger.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type Handler interface {
1616
Info(description ...interface{})
1717
Infof(format string, args ...interface{})
1818
Debug(description ...interface{})
19+
Debugf(format string, args ...interface{})
1920
Warn(err error)
2021
Warnf(format string, args ...interface{})
2122
Error(err error)
@@ -127,4 +128,8 @@ func (l *Logger) Infof(format string, args ...interface{}) {
127128

128129
func (l *Logger) Warnf(format string, args ...interface{}) {
129130
l.handler.Log(logrus.WarnLevel, fmt.Sprintf(format, args...))
131+
}
132+
133+
func (l *Logger) Debugf(format string, args ...interface{}) {
134+
l.handler.Log(logrus.DebugLevel, fmt.Sprintf(format, args...))
130135
}

0 commit comments

Comments
 (0)