I am trying to put my logs in a "logs" folder but when I try to deploy to Scrapy I get No such file or directory: '/scrapinghub/sfb/logs/random_log.log'
but I think I am declaring it correctly in the setup.py file. What am I doing wrong here?
File structure:
sfbu
-- bin
-- sfbitemcomparer.py
-- requirements.txt
-- scrapy.cfg
-- setup.py
-- sfb
-- logs
-- random_log.log
-- _init_.py
-- items.py
-- middlewares.py
-- pipelines.py
-- settings.py
-- spiders
-- spider.py
setup.py:
setup(
name = 'sfb',
version = '1.0',
packages = find_packages(),
scripts = ['bin/sfbitemcomparer.py'],
package_data = {
'sfb': ['sfb/logs/*.log']
},
entry_points = {'scrapy': ['settings = sfb.settings']},
)