diff --git a/main.go b/main.go index 5afbaa3..e0240e8 100644 --- a/main.go +++ b/main.go @@ -13,6 +13,11 @@ func main() { flag.StringVar(&configPath, "c", "config.toml", "配置文件路径") flag.Parse() + cfg := mylog.DefaultConfig + cfg.ConsoleWriter = nil + cfg.NeedLogFile = true + mylog.Init("debug", cfg) + myconf.Init(configPath, &app.ProxyMap) defer mylog.Flush() app.Run()