How do you display logging output to user in QTextEdit?
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 ?
Code:
import logging
def setupUi(self, MainWindow):
.....
self.
textEdit = QtWidgets.
QTextEdit(self.
centralwidget) self.
textEdit.
setGeometry(QtCore.
QRect(50,
890,
960,
80))self.textEdit.setObjectName("textEdit")
Code:
if DEBUG:
logging.basicConfig(filename='example.log', level=logging.DEBUG)
logging.debug(self.wooconsumerweb.text())
logging.debug(self.wooconsumerinput.text())
logging.debug(self.wooconsumersecret.text())
Re: How do you display logging output to user in QTextEdit?
Quote:
How do you display them in QTextEdit
Are you asking how to show text in a QTextEdit? because that is what I make out from your question.