From 7436b1bac461a6bf71f4329b49d26ee5740ae3ee Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 9 Aug 2019 20:03:36 +0200 Subject: Configure scrapy log --- commonnet/scrapy_setting.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commonnet') diff --git a/commonnet/scrapy_setting.py b/commonnet/scrapy_setting.py index 0d0f15b..31bba15 100644 --- a/commonnet/scrapy_setting.py +++ b/commonnet/scrapy_setting.py @@ -29,6 +29,8 @@ SCRAPPY_SETTINGS = { # Disable Telnet Console (enabled by default) "TELNETCONSOLE_ENABLED": False, + "LOG_FILE": "/var/log/scrapy/commonnet.log", + # Override the default request headers: #DEFAULT_REQUEST_HEADERS = { # 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', -- cgit v1.2.3