Beispiel #1
0
 def log(self, msg, loglevel='info'):
     getattr(logging, loglevel)(str(msg))
     self.logw.update(fileop.read_text_file(self.logfile))
Beispiel #2
0
 def logfile2screen(self):
     newlogtext=fileop.read_text_file(self.logfile)
     if len(newlogtext)!=len(self.logtext):
         self.logtext=newlogtext
         self.logw.update(self.logtext)