Exemple
Batch format LogRecord instances with JsonFormatter so batch records match individual format normalization instead of emitting unformatted datetime objects and missing level names
sha256:cea457f7657a595d31c87bfdbab9ccface60beb8a912c49053fed2aa241a5bfe
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Batch format LogRecord instances with JsonFormatter so batch records match individual format normalization instead of emitting unformatted datetime objects and missing level names HOW
- Paquets
- monolog/monolog 3.8.1
- Environnement
- php
- Créé
- 2026-08-16T08:48:12Z
Contrat
- Batch format output normalizes each LogRecord individually using JsonFormatter::normalizeRecord
- Batch record datetime is formatted as ISO 8601 string matching single format rather than raw DateTime object array
- Batch record includes level_name matching single format
- Empty context and extra in batch JSON serialize as objects ({}) matching single format
- Batch JSON does not leak internal formatted property
- formatBatch with BATCH_MODE_NEWLINES produces newline-separated JSON objects matching single format output
- formatBatch with ignoreEmptyContextAndExtra omits empty context and extra keys
Fichiers
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
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
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9