package console import ( module "github.com/eolinker/goku-api-gateway/console/module/config-log" log "github.com/eolinker/goku-api-gateway/goku-log" ) //InitLog 初始化日志 func InitLog() { c, _ := module.Get(module.ConsoleLog) period, _ := log.ParsePeriod(c.Period) log.SetOutPut(c.Enable, c.Dir, c.File, period, c.Expire) l, _ := log.ParseLevel(c.Level) log.SetLevel(l) }