parent
4244fbe25f
commit
2c221193af
@ -1,9 +1,17 @@ |
||||
package glog |
||||
|
||||
import "github.com/go-kratos/kratos/v2/log" |
||||
import ( |
||||
"github.com/go-kratos/kratos/v2/log" |
||||
"sync" |
||||
) |
||||
|
||||
var Glog *log.Helper |
||||
var ( |
||||
once sync.Once |
||||
Glog *log.Helper |
||||
) |
||||
|
||||
func NewHelper(logger log.Logger) { |
||||
once.Do(func() { |
||||
Glog = log.NewHelper(logger) |
||||
}) |
||||
} |
||||
|
Loading…
Reference in new issue