I want to use an existing (big) python app (let's call it my_backend.py) with a web browser. For that, I've added a small python file using flask (+ templates/index.html).
It's work...but now I'd like to redirect all the messages from the logging module.
Typical simple use case:
in my_backend.py:
logger.info("Hello world")
logger.error("Error found !")
in the web browser, the user should see these messages.
Is there somewhere a (very) simple example including the python code and according HTML page ? The idea is to not modify the backend python code.
Additional (post) note: see comments below...The need has to be reconsidered.
Related resources or links: Display data streamed from a Flask view as it updates