From 7acc04a5eec00c12b2e798ff9fd66a4e7e9cf80f Mon Sep 17 00:00:00 2001 From: yakovliu Date: Tue, 14 Jun 2022 17:53:41 +0800 Subject: [PATCH] feat: add debugf for log package --- pkg/log/log.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/log/log.go b/pkg/log/log.go index 55e24d8..3a3639c 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -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...) }