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.
|
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)
|
|
})
|
|
}
|
|
|