Draft: Record Apache error log for unit tests and show it during teardown
This helps to diagnose problems with the Apache-based tests.
Based on !265 (merged); it could be rebased to apply separately, but only with some conflict resolution, and I think !265 (merged) is more important than this.