サンプル
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