Sun, 21 Jan 2018 16:21:53 +0000
Log window and other logging improvements
# # FIFO memory logger # from logging.handlers import BufferingHandler class FIFOHandler(BufferingHandler): def shouldFlush(self, record): return False def emit(self, record): self.buffer.append(record) l=len(self.buffer) if l>self.capacity: self.buffer=self.buffer[(l-self.capacity+1):l] def formatAll(self): return [self.format(record) for record in self.buffer]