doc: update configure_logging docs to discourage use with CrawlerProcess

This commit is contained in:
Vandenn 2019-05-02 23:59:01 +08:00
parent 6e49c379a8
commit 122ca62119
1 changed files with 4 additions and 3 deletions

View File

@ -238,9 +238,10 @@ scrapy.utils.log module
.. autofunction:: configure_logging
``configure_logging`` is automatically called when using Scrapy commands,
but needs to be called explicitly when running custom scripts. In that
case, its usage is not required but it's recommended.
``configure_logging`` is automatically called when using Scrapy commands
or :class:`~scrapy.crawler.CrawlerProcess`, but needs to be called explicitly
when running custom scripts using :class:`~scrapy.crawler.CrawlerRunner`.
In that case, its usage is not required but it's recommended.
If you plan on configuring the handlers yourself is still recommended you
call this function, passing ``install_root_handler=False``. Bear in mind