mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 11:03:58 +00:00
doc: added note about logging from spiders
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%401030
This commit is contained in:
parent
1683c4e971
commit
8757359775
@ -83,3 +83,12 @@ scrapy.log module
|
||||
``component`` - same as ``msg()`` function
|
||||
|
||||
``domain`` - same as ``msg()`` function
|
||||
|
||||
Logging from Spiders
|
||||
====================
|
||||
|
||||
The recommended way for logging from spiders is to use the Spider ``log()``
|
||||
method, which already populates the :func:`~scrapy.log.msg` ``domain``
|
||||
argument. The other arguments of the Spider ``log()`` method are the same as
|
||||
the :func:`~scrapy.log.msg` function.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user