title: How to pipe cURL verbose output to logging module?
body: <p>Does anyone know how or if it's possible to redirect cURL verbose output to the logging module? Right now the verbose output is all going to stdout, but I'd like to pipe it to logging.debug which is being saved to a file.</p>
  
  <p>Note that I don't want to pipe all console output to logging. Also, I do have a string buffer to capture the pycurl.WRITEFUNCTION however that doesn't seem to capture the VERBOSE output.</p>
  
  <p>current code:</p>
  
  <pre><code>logging.debug('starting setopt_put for url: %s',api_url)
  self._podium_curl_setopt_base(api_url.url + api_args)
  self._podium_curl.setopt(pycurl.HTTPGET, 1)
  self._podium_curl.setopt(pycurl.WRITEFUNCTION, self._string_buffer.write)
  self._podium_curl.setopt(pycurl.VERBOSE, True)
  self._podium_curl.perform()
  logging.info(_string_buffer.getvalue())
  </code></pre>
  
  <p>Thanks!</p>