import logging

logging.basicConfig(filename='logging.log',format='%(asctime)s %(message)s') # datefmt=' %m %d %I:%M:%S %Y'
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')

7ccc5264f9766d2ea79fe28d28eab52c04b2acda
<mask token>

<mask token>
logging.basicConfig(filename='logging.log', format='%(asctime)s %(message)s')
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')

import logging
logging.basicConfig(filename='logging.log', format='%(asctime)s %(message)s')
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')

import logging

logging.basicConfig(filename='logging.log',format='%(asctime)s %(message)s') # datefmt=' %m %d %I:%M:%S %Y'
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')
