在调试的过程中,很多地方需要用到日志
- 如下
import logging
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(filename='my.log', level=logging.DEBUG, format=LOG_FORMAT)
logging.debug("log")日志还是很多种级别,这里就记录debug级别
Read The Fucking Source Code
import logging
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(filename='my.log', level=logging.DEBUG, format=LOG_FORMAT)
logging.debug("log")Read The Fucking Source Code
将错误信息记录到Windows日志中. 选择自 rexsp 的 Blog 关键字 错误信息 日志 出处 引言:任何一个系统都不可能一劳永逸,一直没有错误的运行下去,一个优秀的系
各种方式的优缺点,展示了完整的执行顺序,并给出了实际开发中的典型应用场景。建
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M