From 12b1d8b78dff82956d1f68c08d83afea688789e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A5=95=E8=81=AA?= Date: Thu, 16 Jun 2022 14:51:58 +0800 Subject: [PATCH] feat: add debugf for log package (#87) Co-authored-by: yakovliu --- 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...) }