logging打log到文件
# -*- coding:utf-8 -*import osimport logginglogging.basicConfig( level=logging.DEBUG, filename="test.log", datefmt="%Y-%m-%d %H:%M:%S", format="[%(asctime)s %(levelname)s] %(lineno)d: %(message)s")logging.debug("debug")logging.info("i
原创
2021-06-21 12:32:08 ·
208 阅读 ·
0 评论