You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/06/16 06:52:02 UTC

[apisix-go-plugin-runner] branch master updated: feat: add debugf for log package (#87)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-go-plugin-runner.git


The following commit(s) were added to refs/heads/master by this push:
     new 12b1d8b  feat: add debugf for log package (#87)
12b1d8b is described below

commit 12b1d8b78dff82956d1f68c08d83afea688789e1
Author: 刘奕聪 <im...@gmail.com>
AuthorDate: Thu Jun 16 14:51:58 2022 +0800

    feat: add debugf for log package (#87)
    
    Co-authored-by: yakovliu <ya...@tencent.com>
---
 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...)
 }