Parses the output from Ninja to split logs for each launched command that emits some output.
If there is any command that failed (indicated by ninja using a FAILED: prefix), emits only the failed commands. Otherwise it builds logs for any output (usually warnings or CMake re-runs).
See it in action e.g. at http://meinersbur.de:8011/#/builders/142/builds/514