I have the following code, copied from the Python manual:
import logging LOG_FILENAME = \'example.log\' logging.basicConfig(filename=LOG_FILENAME,level=loggi
You've got another module called logging on the python path; probably a file logging.py in the same directory. Compare print logging.__file__.
logging
logging.py
print logging.__file__