title: Python does not create log file
body: <p>I am trying to implement some logging for recording messages. I am getting some weird behavior so I tried to find a minimal example, which I found <a href="https://docs.python.org/2/howto/logging.html#logging-to-a-file">here</a>. When I just copy the easy example described there into my interpreter the file is not created as you can see here:</p>
  
  <pre><code>In [1]: import logging
     ...: logging.basicConfig(filename='example.log',level=logging.DEBUG)
     ...: logging.debug('This message should go to the log file')
     ...: logging.info('So should this')
     ...: logging.warning('And this, too')
  WARNING:root:And this, too
  
  In [2]: ls example.log
  
  File not found
  </code></pre>
  
  <p>Can anybody help me to understand what I am doing wrong? Thanks...</p>
  
  <p>EDIT: changed the output after the second input to English and removed the unnecessary parts. The only important thing is that Python does not create the file <code>example.log</code>.</p>