From fd06bc25109e7f1ee6da7b1135940423b3ef7a9f Mon Sep 17 00:00:00 2001 From: lizifeng Date: Mon, 19 Feb 2024 19:11:43 +0800 Subject: [PATCH] update --- main.go | 5 +++++ 1 file changed, 5 insertions(+) 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()