December 28, 2018
Python报错:AttributeError: module ‘logging’ has no attribute ‘debug’, AttributeError: module ‘logging’ has no attribute ‘basicConfig’
import logging
LOG_FILENAME = 'example.log'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
logging.debug('This message should go to the log file')
报错:AttributeError: module ‘logging’ has no attribute ‘debug’,
或者报错:AttributeError: module ‘logging’ has no attribute ‘basi… Read More