:truck:将gorm日志移动到plugins下

This commit is contained in:
comma
2025-10-27 16:01:17 +08:00
parent b743a89505
commit 57d2c64377
5 changed files with 58 additions and 51 deletions

View File

@@ -21,6 +21,12 @@ func WithLevel(level string) Option {
}
}
func WithStackLevel(level string) Option {
return func(conf *Config) {
conf.Logger.StackLevel = level
}
}
func WithEnableFile(enable bool) Option {
return func(conf *Config) {
conf.File.Enable = enable