• 在调试的过程中,很多地方需要用到日志

  • 如下

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级别

相关文章:

  • 2021-06-25
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-08-11
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-02-06
  • 2022-12-23
相关资源
相似解决方案