Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)