title: Log 3rd party messages from stdout and send through a post request in python
body: <p>Is it possible to log messages that are generated by 3rd party application in python? My code depends on a 3rd party service which is originally implemented in C++, and has python wrapper. It logs various messages through printf() to the stdout. So, when I run my python code with logging, these 3rd party messages aren't logged.</p>
  
  <p>Moreover, I want to send all my log messages to another server through python requests framework. For the messages I log in the python file, I can immeditately send a post request, but what should I do for those 3rd party messages which get directly written to the stdout?</p>