%s' % (color, status) - self.textedit.appendHtml(s) - - @Slot() - def manual_update(self): - # This function uses the formatted message passed in, but also uses - # information from the record to format the message in an appropriate - # color according to its severity (level). - level = random.choice(LEVELS) - extra = {'qThreadName': ctname() } - logger.log(level, 'Manually logged!', extra=extra) - - @Slot() - def clear_display(self): - self.textedit.clear() - - - def main(): - QtCore.QThread.currentThread().setObjectName('MainThread') - logging.getLogger().setLevel(logging.DEBUG) - app = QtWidgets.QApplication(sys.argv) - example = Window(app) - example.show() - sys.exit(app.exec_()) - - if __name__=='__main__': - main() diff --git a/doc/python-3.8.14-docs-text/howto/logging.txt b/doc/python-3.8.14-docs-text/howto/logging.txt deleted file mode 100644 index 0320ec9597fa758ee679fcce7b9ee574bf950550..0000000000000000000000000000000000000000 --- a/doc/python-3.8.14-docs-text/howto/logging.txt +++ /dev/null @@ -1,1098 +0,0 @@ -Logging HOWTO -************* - -Author: - Vinay Sajip