Logs in the test report are interleaved between tests if running tests in parallel with JUnit

Logs in the test report are interleaved between tests if running tests in parallel with JUnit. I’ve created a bug.

Is it possible to create some workaround to fix this problem without changing existing logging code?