Exemple
Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior
sha256:04fc0c107cbd38bfee7ae0fc1da9d91546055682997e3eee211708b9a7b77aea
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Capture structured zap 1.28.0 logs in memory and distinguish production from development DPanic behavior HOW
- Paquets
- go.uber.org/zap v1.28.0
- Environnement
- native
- Créé
- 2026-08-17T01:32:30Z
Contrat
- 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
Fichiers
- csx.json
- go.mod
- go.sum
- zap_contract_test.go
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-17 · ed25519:d91480838ac982c9