Scrapy日志 - Scrapy教程™
https://www.yiibai.com/scrapy/scrapy_logging.htmlScrapy设置可以通过命令行参数来覆盖,如下面的表: 要手动配置日志输出,可以使用 logging.basicConfig (),如下所示: import logging from scrapy.utils.log import configure_logging configure_logging (install_root_handler=False) logging.basicConfig ( filename='logging.txt', format='% (levelname)s: % (your_message)s', level=logging.INFO )