Files
eliets2 1f26293482 Save per-file batch log with step status and failure reasons (#6519)
* Save per-file batch log with step status and failure reasons

Users need an honest per-file record after a batch run instead of only opaque JSON, so a failing file and its reason are not lost.

Add a plain-text per-file log to the batch result and an optional CLI log path that writes one section per file with step status, output name and failure reason plus final counts, annotating step errors with the step name.

Test: batch_log_names_failed_file_step_and_reason failed before the change and passes after.

* Address review for pull request 6519

* Batch log: escape backslashes, wire the CLI log option

* Compare the escaped output path in the batch log test

* Address review for pull request 6519

* Repair review branch integration

* Format the files this pull request changes

* Repair review branch integration

* Repair review branch integration

* Keep dry-run output names clear of files that already exist

* Give the dry-run log test its own output folder

* Address review for pull request 6519

* Format the files this pull request changes

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Address review for pull request 6519

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Address remaining review requests

* Tighten the change after a final review

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
2026-12-03 15:39:04 +01:00
..