v2
lizifeng 2024-02-19 19:11:43 +08:00
parent a3c7754718
commit fd06bc2510
1 changed files with 5 additions and 0 deletions

View File

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