title: python logging file is not working when using logging.basicConfig
body: <p>I have the following lines of code that initialize logging.
  I comment one out and leave the other to be used.
  The problem that I'm facing is that the one that is meant to log to the file not logging to file. It is instead logging to the console.
  Please help.</p>
  <h2>For logging to Console:</h2>
  <pre><code>logging.basicConfig(level=logging.INFO,
          format='%(asctime)s [%(levelname)s] (%(threadName)-10s) %(message)s',)
  </code></pre>
  <h2>for file logging</h2>
  <pre><code>logging.basicConfig(filename='server-soap.1.log',level=logging.INFO,
          format='%(asctime)s [%(levelname)s] (%(threadName)-10s) %(message)s')
  </code></pre>