Jun-02-2019, 05:44 PM
(Jun-02-2019, 05:31 PM)buran Wrote:(Jun-02-2019, 05:15 PM)koticphreak Wrote: As part of the script, it runs a 3rd party program and half of the output is from that program - trying to capture everything, and not seeing a simple way to do that?how do you run this 3-rd party program?
you can capture the output when run it using subprocess module
Yes, that's exactly how I do it, using subprocess. Struggling to understand how to have it log it all. Having the logging module setup, but can only seem to pass things to the log using "logging.info/debug/warning", rather than having it just capture everything.