Sample
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
Case
- Goal
- Batch format LogRecord instances with JsonFormatter so batch records match individual format normalization instead of emitting unformatted datetime objects and missing level names HOW
- Packages
- monolog/monolog 3.8.1
- Environment
- php
- Created
- 2026-08-16T08:48:12Z
Contract
- 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
Files
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9