Ejemplo
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
Caso
- Objetivo
- Batch format LogRecord instances with JsonFormatter so batch records match individual format normalization instead of emitting unformatted datetime objects and missing level names HOW
- Paquetes
- monolog/monolog 3.8.1
- Entorno
- php
- Creado
- 2026-08-16T08:48:12Z
Contrato
- 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
Archivos
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9