code: def get_logs(self):
          
  
          output = []
  
          # Collect logs from server
          try:
              logs = self.osbs.get_build_logs(self.build_id)
          except OsbsException as ex:
              self.log.error("unable to get build logs: %r", ex)
          else:
              # Deleted once closed
              logfile = NamedTemporaryFile(prefix=self.build_id,
                                           suffix=".log",
                                           mode='wb')
              try:
                  logfile.write(logs)
              except (TypeError, UnicodeEncodeError):
                  # Older osbs-client versions returned Unicode objects
                  logfile.write(logs.encode('utf-8'))
              logfile.flush()
              metadata = self.get_output_metadata(logfile.name,
                                                  "openshift-final.log")
              output.append(Output(file=logfile, metadata=metadata))
  
          docker_logs = NamedTemporaryFile(prefix="docker-%s" % self.build_id,
                                           suffix=".log",
                                           mode='wb')
          docker_logs.write("\n".join(self.workflow.build_result.logs).encode('utf-8'))
          docker_logs.flush()
          output.append(Output(file=docker_logs,
                               metadata=self.get_output_metadata(docker_logs.name,
                                                                 "build.log")))
          return output
docs: Build the logs entry for the metadata 'output' section
  
          :return: list, Output instances