Exemplo
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
- Pacotes
- go.uber.org/zap v1.28.0
- Ambiente
- native
- Criado
- 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
Arquivos
- csx.json
- go.mod
- go.sum
- zap_contract_test.go
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-17 · ed25519:d91480838ac982c9