title: how can I log to a file with the standard lib "logging" from the ipython qtconsole?
body: <p>I noticed that I can't log to a file under ipython the way it is possible from the terminal.</p>
  
  <p>If I run the following code from the console the file aaa.log is created but not when I run it from the ipython qtconsole. (I use python 3.2.3  ipython: 0.13.1)</p>
  
  <p>My suspicion is that ipython's own logging feature is in the way. Is there a way to also also use this "standard" logging with ipython? Outputting the logging messages to the qtconsole seems to work however.</p>
  
  <pre><code>import logging
  
  logging.basicConfig(filename='aaa.log', filemode='w', level=logging.DEBUG) 
  
  def my_method():
      logging.debug('This message should go to the log file 2')
      logging.info('So should this')
      logging.warning('And this, too')
  
  if __name__=='__main__':
      my_method()
  </code></pre>