title: Python logging module AttributeError: 'str' object has no attribute 'write'
body: <p>I am using Tornado, and in my app I import <code>logging</code> so I can log some information about the server.</p>
  
  <p>I put this:</p>
  
  <pre><code>logging.config.dictConfig(web_LOGGING)
  </code></pre>
  
  <p>right before:</p>
  
  <pre><code>tornado.options.parse_command_line()
  </code></pre>
  
  <p>but when I run the server and click any link I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/python2.7/logging/__init__.py", line 874, in emit
      stream.write(fs % msg)
  AttributeError: 'str' object has no attribute 'write'
  Logged from file web.py, line 1946
  </code></pre>
  
  <p>What is causing this?</p>
  
  <p>I've already changed to another directory to steer clear of namespace conflicts.</p>