when i using
logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
i cant create log file, and when i using
logging.debug('This message should go to the log file')
it will create as many times of line after execute it. like this
This message should go to the log file
This message should go to the log file
This message should go to the log file
This message should go to the log file
This message should go to the log file
This message should go to the log file