when you use some third part library,you want to print out these libraries debug info may help you dailogous,code as follows:

import logging
from urllib3.connectionpool import log
console = logging.StreamHandler()

console.setLevel(logging.INFO)

formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s")

console.setFormatter(formatter)

log.addHandler(console)

reference:http://blog.sina.com.cn/s/blog_51294ca50100gc3x.html

python logging usage

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2021-11-23
  • 2021-07-11
  • 2021-10-23
猜你喜欢
  • 2021-06-26
  • 2021-06-20
  • 2021-07-23
  • 2021-10-14
  • 2021-12-06
相关资源
相似解决方案