I have created a debug print for every user app events (mouse click & API requests) like shown below. How do you display them in QTextEdit, so when the app took longer time to process users don't assume the app is hang or something ?

Qt Code:
  1. import logging
  2.  
  3. def setupUi(self, MainWindow):
  4. .....
  5. self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
  6. self.textEdit.setGeometry(QtCore.QRect(50, 890, 960, 80))
  7. self.textEdit.setObjectName("textEdit")
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. if DEBUG:
  2. logging.basicConfig(filename='example.log', level=logging.DEBUG)
  3. logging.debug(self.wooconsumerweb.text())
  4. logging.debug(self.wooconsumerinput.text())
  5. logging.debug(self.wooconsumersecret.text())
To copy to clipboard, switch view to plain text mode