Skip to content

v0.2.0

Choose a tag to compare

@feymanlee feymanlee released this 29 Jul 07:17
· 6 commits to main since this release

主要内容

  • Canonical Go module path 迁移为 github.com/feymanlee/slog。
  • 基于 Go 1.23+ log/slog 的六级结构化日志。
  • 文本与 JSON 双输出,支持彩色终端和源码位置。
  • 支持 36 类敏感数据的 DLP 脱敏及结构体标签。
  • Logger Lineage 模块隔离、实例级配置更新、诊断和并发安全 formatter 快照。
  • 日志订阅、背压策略、运行时控制和上下文传播。
  • Formatter、Logfmt、GELF、网络、Syslog、Webhook 与 Fanout 输出模块。

安装

go get github.com/feymanlee/slog@v0.2.0

质量门禁

  • go test ./... -count=1
  • go test -race ./... -count=1
  • go vet ./...

完整变更见 CHANGELOG。