logger.go 430 字节
package log

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"

	"github.com/linmadan/egglib-go/log"
)

var Logger log.Logger

func init() {
	// Logger = logrus.NewLogrusLogger()
	// Logger.SetServiceName(constant.SERVICE_NAME)
	// Logger.SetLevel(constant.LOG_LEVEL)
	// //
	Logger = NewBeegoLog(LoggerConfig{
		Filename: constant.LOG_FILE,
		Level:    7,
		MaxSize:  1024 * 1024 * 2,
	})
}