From 3a1361a21404e6dbb89b674769f7f4adeea5e4a4 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Singh Date: Mon, 1 Jul 2024 22:42:29 +0530 Subject: [PATCH] add: added Debugf function to logger Signed-off-by: Saurabh Kumar Singh --- logger/logger.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/logger/logger.go b/logger/logger.go index 1bcce1b0..44ea184d 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -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) @@ -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...)) } \ No newline at end of file