mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
23 lines
446 B
Go
23 lines
446 B
Go
package conf
|
|
|
|
type SingConfig struct {
|
|
LogConfig SingLogConfig `yaml:"LogConfig"`
|
|
OriginalPath string `yaml:"OriginalPath"`
|
|
}
|
|
|
|
type SingLogConfig struct {
|
|
Disabled bool `yaml:"Disable"`
|
|
Level string `yaml:"Level"`
|
|
Output string `yaml:"Output"`
|
|
Timestamp bool `yaml:"Timestamp"`
|
|
}
|
|
|
|
func NewSingConfig() *SingConfig {
|
|
return &SingConfig{
|
|
LogConfig: SingLogConfig{
|
|
Level: "error",
|
|
Timestamp: true,
|
|
},
|
|
}
|
|
}
|