日志支持不展示调用链

This commit is contained in:
2025-11-16 15:53:07 +08:00
parent 2aabbfd8b9
commit bf747e22ce
4 changed files with 26 additions and 15 deletions

View File

@@ -69,14 +69,15 @@ type ServerConfig struct {
// LogConfig 代表日志配置
type LogConfig struct {
Level string `yaml:"level"`
Format string `yaml:"format"`
EnableFile bool `yaml:"enable_file"`
FilePath string `yaml:"file_path"`
MaxSize int `yaml:"max_size"`
MaxBackups int `yaml:"max_backups"`
MaxAge int `yaml:"max_age"`
Compress bool `yaml:"compress"`
Level string `yaml:"level"`
Format string `yaml:"format"`
EnableFile bool `yaml:"enable_file"`
FilePath string `yaml:"file_path"`
MaxSize int `yaml:"max_size"`
MaxBackups int `yaml:"max_backups"`
MaxAge int `yaml:"max_age"`
Compress bool `yaml:"compress"`
EnableTrace bool `yaml:"enable_trace"`
}
// DatabaseConfig 代表数据库配置