feat: 独立debug选项,改善日志文件输出

This commit is contained in:
Mmx233
2022-03-01 23:11:17 +08:00
parent ccd1472f6f
commit 7867a99f3b
5 changed files with 33 additions and 27 deletions

View File

@@ -15,7 +15,6 @@ type Guardian struct {
type Basic struct {
Timeout uint `json:"timeout"`
Interfaces string `json:"interfaces"`
DemoMode bool `json:"demo_mode" yaml:"demo_mode"`
SkipNetCheck bool `json:"skip_net_check" yaml:"skip_net_check"`
}
@@ -23,6 +22,12 @@ type Settings struct {
Basic Basic `json:"basic"`
Guardian Guardian `json:"guardian"`
Daemon Daemon `json:"daemon"`
Debug Debug
}
type Debug struct {
Enable bool `json:"enable"`
Path string `json:"path"`
}
type Config struct {