通用包
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

17 lines
206 B

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