def METHOD_NAME(self):
    """Run the thread, logging everything.
       If the log_collection is 'none', the log content will not be enqueued
    """
    for line in iter(self.pipeReader.readline, ''):
        self.orig_stdout.write(line.rstrip() + '\n')
        self.orig_stdout.flush()
        if self.log_collection == 'none':
            search_result = self.log_pattern.search(line)
            if search_result:
                metrics = search_result.group(0)
                self.queue.put(metrics+'\n')
        else:
            self.queue.put(line)
    self.pipeReader.close()