在spider中设置该spider的独立日志文件
spider1.py
custom_settings = {
'LOG_FILE': spider1.log
}
spider2.py
custom_settings = {
'LOG_FILE': spider2.log
}
在spider中设置该spider的独立日志文件
spider1.py
custom_settings = {
'LOG_FILE': spider1.log
}
spider2.py
custom_settings = {
'LOG_FILE': spider2.log
}
本文标题:在scrapy的每个spider中设置独立的日志文件
本文链接:https://www.haomeiwen.com/subject/krmmyctx.html
网友评论