logger.go
342 字节
package log
import (
"fmt"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/config"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"openapi/pkg/constant"
"openapi/pkg/infrastructure/utils"
)
func init() {
log.InitLog(config.Logger{
Filename: constant.LogFilePath,
Level: fmt.Sprintf("%v", utils.ResolveLogLevel(constant.LogLevel)),
})
}