I want to start an application using Pythons subprocess.Popen and send the output of the applications stdout and stderr to the logging module in such fashion that it shows like logging.INFO("This is whats in stdout")
every time the applications sends something/someline to stdout/stderr.
Since the application is a deamon it does ( and should ) not terminate.
Is there an easy way to achieve this or do I have to check the process output frequently with a separate thread?