Test results logging grouped on test case

I started using Gradle with TestNG and got the tests run in parallel. My issue is with the test logs, during parallel execution of the tests. The result logs are getting jumbled showing one test’s logs in another test log report. Is there a way to group the logs based on test case?