660 B
660 B
tlog
class tlog.VHandler(level, tolog)
Custom log handler to push logs into a thread-safe queue so the TUI can read them
tolog
Thread-safe log queue
- Type: Queue.queue
emit(record)
Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
tolog = <queue.Queue object>
tlog.logUI(stdscr, tolog, nodeNickname)
TUI loop
tlog.runLogUI(tolog, nodeNickname)
Some required kludge