Created
June 14, 2011 02:19
-
-
Save saidimu/1024184 to your computer and use it in GitHub Desktop.
Redirecting Scrapy log messages to standard Python logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Add the following lines to your Scrapy project's settings.py file | |
## This will redirect *all* Scrapy logs to your standard Python logging facility | |
from twisted.python import log | |
observer = log.PythonLoggingObserver() | |
observer.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment