Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log to stdout #113

Open
janwendt opened this issue Sep 22, 2020 · 1 comment
Open

Log to stdout #113

janwendt opened this issue Sep 22, 2020 · 1 comment

Comments

@janwendt
Copy link

janwendt commented Sep 22, 2020

I am using scrapyrt in Google App Engine. To save the logs in Google Cloud i need to log to stdout but scrapyrt does not support that see:

scrapyrt/scrapyrt/log.py

Lines 135 to 137 in f8ee7b7

# Looging stdout is a bad idea when mutiple crawls are running
# if settings.getbool('LOG_STDOUT'):
# sys.stdout = StreamLogger(logging.getLogger('stdout'))

Everyone who wants to use scrapyrt in production and wants to deploy it on any kind of cloud platform needs this feature.

I would help creating a PR if desired. Any Ideas @pawelmhm ?

@janwendt janwendt changed the title Log to stderr Log to stdout Sep 22, 2020
@pawelmhm
Copy link
Member

Sorry for late response. Sure create PR if still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants