This commit is contained in:
kzkzzzz
2025-03-23 20:29:29 +08:00
parent 7e0bf82418
commit 9fd0eaadb8
14 changed files with 661 additions and 78 deletions

View File

@@ -65,6 +65,7 @@ func WithLoadOverwrite(v bool) Opt {
func init() {
defaultConf = New(Default)
log.SetOutput(os.Stdout)
log.SetFlags(log.LstdFlags | log.Lshortfile)
// --config 指定配置文件
pflag.StringVar(&flagConfigFile, "config", "", "set config file")