code: def run(self):
          
          self._finished.clear()
          for line in iter(self.pipeReader.readline, ''):
              logging.log(self.level, line.strip('\n'))
  
          self.pipeReader.close()
          self._finished.set()
docs: Run the thread, logging everything.