logger.go
401 字节
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()
Logger.SetServiceName(constant.SERVICE_NAME)
//Logger.SetLevel(constant.LOG_LEVEL)
Logger = NewBeegoLog(LoggerConfig{
Filename: "debug.log",
Level: 7,
MaxSize: 1024 * 1024 * 2,
})
}