示例
Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior
sha256:04fc0c107cbd38bfee7ae0fc1da9d91546055682997e3eee211708b9a7b77aea
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior HOW
- 包
- go.uber.org/zap v1.28.0
- 环境
- native
- 创建时间
- 2026-08-17T01:32:30Z
契约
- assert an info-level observer core filters Debug, captures Info once, and exposes typed structured fields through ContextMap
- assert Logger.With attaches context to the child logger without mutating entries written by the base logger
- assert DPanic logs without panicking on a production logger
- assert zap.Development makes DPanic panic only after the structured entry has been recorded
文件
- csx.json
- go.mod
- go.sum
- zap_contract_test.go
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-17 · ed25519:d91480838ac982c9