K
K
killeryStark2020-09-15 00:34:39
Python
killeryStark, 2020-09-15 00:34:39

How to output console logs to the program?

There is a bot for instagram with a graphical interface on pyqt5. The program actively uses the instapy library, which, through logging, writes the progress of the script to the console and log file. Is there a way to output logs to a QT test field while the program is running, rather than after it has been executed by reading the log file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-09-15
@killeryStark

The easiest way is to read from this log file and display what you read in the field.

D
Developer, 2020-09-15
@samodum

Yes, there might be such a way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question