in pipelines, the code is as follows:
import logging
from scrapy.utils.log import configure_logging
configure_logging(install_root_handler=False)
logging.basicConfig(
filename="log.txt",
format="%(levelname)s: %(message)s",
level=logging.INFO
)
logging.error("s")
will output on the console SRAV 2018-11-12 19:19:53 [root] ERROR: s
will not be output to the set log.txt.
Why?