Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

doc: added note about logging from spiders

Pablo Hoffman875735977562
diff --git a/scrapy/trunk/docs/ref/logging.rst b/scrapy/trunk/docs/ref/logging.rst
index 3a2caa518..734401d77 100644
--- a/scrapy/trunk/docs/ref/logging.rst
+++ b/scrapy/trunk/docs/ref/logging.rst
@@ -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.
+