logger.go 346 字节
package log

import (
	"github.com/linmadan/egglib-go/log"
	"github.com/linmadan/egglib-go/log/logrus"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant"
)

var Logger log.Logger

func init() {
	Logger = logrus.NewLogrusLogger()
	Logger.SetServiceName(constant.SERVICE_NAME)
	Logger.SetLevel(constant.LOG_LEVEL)
}