Skip to content

Instantly share code, notes, and snippets.

@saidimu
Created June 14, 2011 02:19
Show Gist options
  • Save saidimu/1024184 to your computer and use it in GitHub Desktop.
Save saidimu/1024184 to your computer and use it in GitHub Desktop.
Redirecting Scrapy log messages to standard Python logger
## 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