1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 06:03:45 +00:00

Merge pull request #3762 from Vandenn/update-logging-docs

[MRG+1] doc: update configure_logging docs to discourage use with CrawlerProcess
This commit is contained in:
Mikhail Korobov 2019-05-09 20:59:20 +05:00 committed by GitHub
commit 137a3d8146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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