Ejemplo
Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior
sha256:04fc0c107cbd38bfee7ae0fc1da9d91546055682997e3eee211708b9a7b77aea
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior HOW
- Paquetes
- go.uber.org/zap v1.28.0
- Entorno
- native
- Creado
- 2026-08-17T01:32:30Z
Contrato
- 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
Archivos
- csx.json
- go.mod
- go.sum
- zap_contract_test.go
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-17 · ed25519:d91480838ac982c9