python3 logging中文乱码解决方法
指定utf-8编码防止中文乱码
logging.basicConfig(
handlers=[logging.FileHandler('log.log', 'a', 'utf-8')],
format='%(asctime)s - %(levelname)s: %(message)s',
datefmt='%m-%d %H:%M:%S',
level=logging.DEBUG #CRITICAL ERROR WARNING INFO DEBUG NOTSET
)