{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/366","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/366/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/366/events","html_url":"https://github.com/nilearn/nilearn/issues/366","id":55189075,"number":366,"title":"Verbosity=0 should mean silent","user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-22T18:18:08Z","updated_at":"2015-01-24T18:30:17Z","closed_at":null,"body":"Another developer-focused code change that I found I needed when doing Python 2.6 / Python 3.x support.\r\n\r\n**Expectation:**\r\n* It is possible to completely turn off output.\r\n\r\n**Current behavior:**\r\n* A number of dataset download functions print, even at `verbosity=0`\r\n\r\n**Notes:**\r\nCurrently, the tests print a lot of output during testing.  This makes viewing test output very challenging--I have to search/scroll for error information, and even getting to the final output requires a lot of scrolling.\r\n\r\n**Proposed solutions:**\r\nEither:\r\n* Define a schema for what verbosity means (0=silent, 1=errors, 2=warnings, 3=standard user output, 4=debug info, etc.), and use it\r\n\r\nor\r\n\r\n* Instead of passing a verbosity, pass a logger from the `logging` module.\r\n* Create a `nilearn._utils.logger` object in the `nilearn._utils.__init__' file, that will be the default logger.\r\n\r\nI would prefer the second solution; I think anyone wanting to actually manipulate the logging would either know the `logging` module, or would \"get\" it pretty quickly (it's not hard)\r\n\r\nAgain, this is a developer-side feature that I'm happy to implement in order to make my own life easier."},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/71330990","html_url":"https://github.com/nilearn/nilearn/issues/366#issuecomment-71330990","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/366","id":71330990,"user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T18:30:17Z","updated_at":"2015-01-24T18:30:17Z","body":"> Need to address this issue, to complete the Python 3.x support.\r\n\r\nJust curious, how is Python 3 support related to verbosity?"}}