python记录日志

python日志

import logging
logging.basicConfig(level=logging.DEBUG,format=' %(asctime)s - %(levelname)s - %(message)s')
logging.debug('this is debug info')
posted @ 2022-06-27 20:01  shenshu  阅读(19)  评论(0编辑  收藏  举报