logger.go 433 字节
package log

import (
	"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)
//}

var Logger *LogrusLogger

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