通用包
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
utils/glog/v1/glog.go

18 lines
206 B

2 years ago
package glog
2 years ago
import (
"github.com/go-kratos/kratos/v2/log"
"sync"
)
2 years ago
2 years ago
var (
once sync.Once
Glog *log.Helper
)
2 years ago
func NewHelper(logger log.Logger) {
2 years ago
once.Do(func() {
Glog = log.NewHelper(logger)
})
2 years ago
}