Python protocol suite level in basicConfig:
import logging def show(level): logging.basicConfig(level=level) logging.info('info') logging.debug('debug') logging.warn('warn') logging.error('error') logging.fatal('fatal') logging.warning('warning') logging.critical('critical') logging.exception('exception') show(logging.WARNING) show(logging.DEBUG)
The two results are the same, how to get what I expect?
source share