Sample
Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior
sha256:04fc0c107cbd38bfee7ae0fc1da9d91546055682997e3eee211708b9a7b77aea
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior HOW
- Packages
- go.uber.org/zap v1.28.0
- Environment
- native
- Created
- 2026-08-17T01:32:30Z
Contract
- 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
Files
- csx.json
- go.mod
- go.sum
- zap_contract_test.go
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-17 · ed25519:d91480838ac982c9