1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 08:24:05 +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:
Pablo Hoffman 2009-04-02 22:43:52 +00:00
parent 1683c4e971
commit 8757359775

View File

@ -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.