I am using Tornado, and in my app I import
logging
so I can log some information about the server.
I put this:
logging.config.dictConfig(web_LOGGING)
right before:
tornado.options.parse_command_line()
but when I run the server and click any link I get the following error:
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
What is causing this?
I've already changed to another directory to steer clear of namespace conflicts.
–
–
–
https://stackoverflow.com/questions/39361630/python-logging-module-attributeerror-str-object-has-no-attribute-write/39361698#39361698
Share
Improve this answer
Follow