title: how to send the output of pprint module to a log file
body: <p>I have the following code:</p>
  
  <pre><code>logFile=open('c:\\temp\\mylogfile'+'.txt', 'w')
  pprint.pprint(dataobject)
  </code></pre>
  
  <p>how can i send the contents of dataobject to the log file on the pretty print format ?</p>