审查视图

pkg/log/logger.go 402 字节
tangxvhui authored
1 2 3 4 5 6 7 8 9 10 11
package log

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

var Logger log.Logger

func init() {
	//Logger = logrus.NewLogrusLogger()
tangxvhui authored
12
tangxvhui authored
13 14 15 16 17 18 19
	//Logger.SetLevel(constant.LOG_LEVEL)

	Logger = NewBeegoLog(LoggerConfig{
		Filename: "debug.log",
		Level:    7,
		MaxSize:  1024 * 1024 * 2,
	})
tangxvhui authored
20
	Logger.SetServiceName(constant.SERVICE_NAME)
tangxvhui authored
21 22

}