I have the following code, copied from the Python manual:
import logging LOG_FILENAME = \'example.log\' logging.basicConfig(filename=LOG_FILENAME,level=loggi
Change your file name instead of logging.py absolutely it will work because I faced same problem after importing logging module name so don't give a logging name to your python file.