How do I record parallel task logs?

We use the --parallel flag on our build server. It works great, except that when a task fails, it’s hard to see from the logs how it failed because all the logs are intermingled.

Is there a way to capture the logs from each task and pipe them to individual files? That would make inspection after the fact really easy.