Selaa lähdekoodia

添加新的日志格式选项

在`format.go`中增加了`FormatConsolePretty`作为新的日志格式选项,并在`CHANGELOG.md`中记录了对`format`中遗漏测试函数的修复。
SongZihuan 6 päivää sitten
vanhempi
sitoutus
59350255d1
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      CHANGELOG.md
  2. 1 0
      src/logger/logformat/format.go

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@
 - 添加行为准则。
 - 完善`README.md`文档。
 - 在贡献者指南中把 《Go 编码最佳实际》 列为参考。
+- 修复`format`中遗漏的测试函数。
 
 ## [0.10.0] - 2025-04-23
 

+ 1 - 0
src/logger/logformat/format.go

@@ -65,6 +65,7 @@ func _test_func() {
 	a = FormatMachine
 	a = FormatFile
 	a = FormatConsole
+	a = FormatConsolePretty
 
 	_ = a
 }