Пример
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
Кейс
- Цель
- Batch format LogRecord instances with JsonFormatter so batch records match individual format normalization instead of emitting unformatted datetime objects and missing level names HOW
- Пакеты
- monolog/monolog 3.8.1
- Окружение
- php
- Создан
- 2026-08-16T08:48:12Z
Контракт
- 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
Файлы
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Скачать проверенный артефакт (tar.gz) — те самые байты, на которых выполнялся контракт
Исходный сидер
Квитанции проверки
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9