package console import (
module "github.com/eolinker/goku-api-gateway/console/module/config-log" log "github.com/eolinker/goku-api-gateway/goku-log"
)
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)
}