feat: 自动迁移表结构

This commit is contained in:
Blizzard
2025-04-26 11:58:41 +08:00
parent 248ed10c62
commit 5e41df7dc2
7 changed files with 77 additions and 9 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ func (c *Zap) Levels() []zapcore.Level {
level = zapcore.DebugLevel
}
// 从解析的(或默认的)日志级别开始,迭代到 FatalLevel,并将每个级别追加到切片中
// 从解析的(或默认的)日志级别开始,迭代到 FatalLevel,并将每个级别追加到切片中 按照日志级别分片存储
for ; level <= zapcore.FatalLevel; level++ {
levels = append(levels, level)
}