Handler.__init__(self)

def emit(self, record):
    r = self.format(record)
self._box.insert(0, r)
target = []
rootLogger = getLogger()
rootLogger.addHandler(ListboxHandler(target))
rootLogger.warn('test')
print(target)
how to direct python logger to Tkinker's Listbox?