From a8864abad3e99341e0b243630b83bd9d287be589 Mon Sep 17 00:00:00 2001 From: nikkiing <1031497516@qq.com> Date: Wed, 22 Feb 2023 16:29:30 +0800 Subject: [PATCH] =?UTF-8?q?env=E5=92=8C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- glog/v1/aliyun.go | 2 +- glog/v1/glog.go | 9 +++++++++ glog/v1/logger.go | 2 +- glog/v1/std.go | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 glog/v1/glog.go diff --git a/glog/v1/aliyun.go b/glog/v1/aliyun.go index f2975f2..fe61512 100644 --- a/glog/v1/aliyun.go +++ b/glog/v1/aliyun.go @@ -1,4 +1,4 @@ -package pkg +package glog import ( "encoding/json" diff --git a/glog/v1/glog.go b/glog/v1/glog.go new file mode 100644 index 0000000..6b7b4fd --- /dev/null +++ b/glog/v1/glog.go @@ -0,0 +1,9 @@ +package glog + +import "github.com/go-kratos/kratos/v2/log" + +var Glog *log.Helper + +func NewHelper(logger log.Logger) { + Glog = log.NewHelper(logger) +} diff --git a/glog/v1/logger.go b/glog/v1/logger.go index 5c7c295..3d4b702 100644 --- a/glog/v1/logger.go +++ b/glog/v1/logger.go @@ -1,4 +1,4 @@ -package pkg +package glog import ( "gitea.drugeyes.vip/pharnexbase/utils/enum" diff --git a/glog/v1/std.go b/glog/v1/std.go index 98b65f7..01e660e 100644 --- a/glog/v1/std.go +++ b/glog/v1/std.go @@ -1,4 +1,4 @@ -package pkg +package glog import ( "bytes"