Issue
When running test cases logs are required to troubleshoot if the test cases ran as expected and what the source of a failure might have been.
Expectation
It should be clear how to get this information in DEVELOPER_GUIDE.md
Additional Context
With the recent changes to support java 17 new classes of errors started to appear during our test runs. These failures would be bubbled up into the SecurityFilter and then the output from the test would include a failure like Unexpected exception /_cat/health...{CALLSTACK}.
Unfortunately the exception cause was being sent to log.error on the OpenSearch cluster under test and would not be visible to the test output.
If we could make sure that log.error messages are included in the test output this would greatly increase debuggability. The test added in #1639 could be updated to capture this output and confirm the behavior is working as expected.