def send_text(self): """ -> Analyse an process output line to find a flag in it. -> Send the item by the sending queue object. -> Collect the flag found. """ q_byte_array = self.subprocess.readAllStandardOutput() string = str(q_byte_array, encoding="utf-8").strip() for line in string.split("\n"): log, flag = cs.analyse_log_line(line) log_type = cs.PROCESS_MESSAGE_TYPE self.process_log_sent.emit(log, flag, log_type) if flag != cs.DEFAULT_FLAG: self.flags[flag] += 1
def write(self, line): log, flag = cs.analyse_log_line(line) log_type = cs.APPLICATION_MESSAGE_TYPE self.logger_log_sent.emit(log, flag, log_type)