{"action":"created","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/2384","repository_url":"https://api.github.com/repos/scrapy/scrapy","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/2384/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/2384/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/2384/events","html_url":"https://github.com/scrapy/scrapy/issues/2384","id":187998785,"number":2384,"title":"As soon as I start using import logging my default screen output logging when running spiders is gone.","user":{"login":"yssoe","id":19391216,"avatar_url":"https://avatars.githubusercontent.com/u/19391216?v=3","gravatar_id":"","url":"https://api.github.com/users/yssoe","html_url":"https://github.com/yssoe","followers_url":"https://api.github.com/users/yssoe/followers","following_url":"https://api.github.com/users/yssoe/following{/other_user}","gists_url":"https://api.github.com/users/yssoe/gists{/gist_id}","starred_url":"https://api.github.com/users/yssoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yssoe/subscriptions","organizations_url":"https://api.github.com/users/yssoe/orgs","repos_url":"https://api.github.com/users/yssoe/repos","events_url":"https://api.github.com/users/yssoe/events{/privacy}","received_events_url":"https://api.github.com/users/yssoe/received_events","type":"User","site_admin":false},"labels":[{"id":317415181,"url":"https://api.github.com/repos/scrapy/scrapy/labels/logging","name":"logging","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-08T14:00:28Z","updated_at":"2016-11-30T13:38:05Z","closed_at":null,"body":"Hi, \r\n\r\nI start to write a lot of relevant logging to my spiders using the 'import logging' and the guidelines described in the documentation. \r\n\r\nWhat I notice is that when I run a spider by hand 'scrapy crawl spidername' I don't see any of my previous default output anymore. That's a big problem for me. While writing and debugging spiders it's very nice to see what's going on with scrapy. The only way for me to have it back is by removing my logging code in the spiders. \r\n\r\nIs there a setting that I'm missing that I can use my specific code log and still see the verbose output while running a spider? \r\n\r\nCheers. "},"comment":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/comments/263875104","html_url":"https://github.com/scrapy/scrapy/issues/2384#issuecomment-263875104","issue_url":"https://api.github.com/repos/scrapy/scrapy/issues/2384","id":263875104,"user":{"login":"redapple","id":886296,"avatar_url":"https://avatars.githubusercontent.com/u/886296?v=3","gravatar_id":"","url":"https://api.github.com/users/redapple","html_url":"https://github.com/redapple","followers_url":"https://api.github.com/users/redapple/followers","following_url":"https://api.github.com/users/redapple/following{/other_user}","gists_url":"https://api.github.com/users/redapple/gists{/gist_id}","starred_url":"https://api.github.com/users/redapple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redapple/subscriptions","organizations_url":"https://api.github.com/users/redapple/orgs","repos_url":"https://api.github.com/users/redapple/repos","events_url":"https://api.github.com/users/redapple/events{/privacy}","received_events_url":"https://api.github.com/users/redapple/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T13:38:05Z","updated_at":"2016-11-30T13:38:05Z","body":"Scrapy calls  [`scrapy.utils.log.configure_logging`](https://github.com/scrapy/scrapy/blob/d8672689761f0bb6c0550a841f35534265e87fee/scrapy/utils/log.py#L59) whenever `CrawlerProcess` is used, which is pretty much whenever you call scrapy commands from the command line (e.g. `scrapy crawl`).\r\nThis may very well conflict with the logging settings you want.\r\nAn option to investigate is to use a script with `CrawlerRunner` (not `CrawlerProcess`) and configure the logging as you want in it. See https://docs.scrapy.org/en/latest/topics/practices.html#run-from-script\r\nI admit it's not trivial but until logging is more easily configurable (see #2231 for example), I don't know if there's an easy fix."}}
{"actor":{"display_login":"redapple"}}