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:
commit
137a3d8146
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user