code: def _find_logs(self, compile_workunit):
      
      for idx, workunit in enumerate(compile_workunit.children):
        for output_name, outpath in workunit.output_paths().items():
          if output_name in ('stdout', 'stderr'):
            yield idx, workunit.name, output_name, outpath
docs: Finds all logs under the given workunit.