{"action":"created","issue":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/975","repository_url":"https://api.github.com/repos/coala-analyzer/coala","labels_url":"https://api.github.com/repos/coala-analyzer/coala/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/coala-analyzer/coala/issues/975/comments","events_url":"https://api.github.com/repos/coala-analyzer/coala/issues/975/events","html_url":"https://github.com/coala-analyzer/coala/issues/975","id":109588560,"number":975,"title":"Make use of the `logging` module","user":{"login":"Makman2","id":6023916,"avatar_url":"https://avatars.githubusercontent.com/u/6023916?v=3","gravatar_id":"","url":"https://api.github.com/users/Makman2","html_url":"https://github.com/Makman2","followers_url":"https://api.github.com/users/Makman2/followers","following_url":"https://api.github.com/users/Makman2/following{/other_user}","gists_url":"https://api.github.com/users/Makman2/gists{/gist_id}","starred_url":"https://api.github.com/users/Makman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makman2/subscriptions","organizations_url":"https://api.github.com/users/Makman2/orgs","repos_url":"https://api.github.com/users/Makman2/repos","events_url":"https://api.github.com/users/Makman2/events{/privacy}","received_events_url":"https://api.github.com/users/Makman2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coala-analyzer/coala/labels/difficulty/medium","name":"difficulty/medium","color":"0052cc"},{"url":"https://api.github.com/repos/coala-analyzer/coala/labels/importance/high","name":"importance/high","color":"eb6420"},{"url":"https://api.github.com/repos/coala-analyzer/coala/labels/type/codestyle","name":"type/codestyle","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"Uran198","id":3969221,"avatar_url":"https://avatars.githubusercontent.com/u/3969221?v=3","gravatar_id":"","url":"https://api.github.com/users/Uran198","html_url":"https://github.com/Uran198","followers_url":"https://api.github.com/users/Uran198/followers","following_url":"https://api.github.com/users/Uran198/following{/other_user}","gists_url":"https://api.github.com/users/Uran198/gists{/gist_id}","starred_url":"https://api.github.com/users/Uran198/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uran198/subscriptions","organizations_url":"https://api.github.com/users/Uran198/orgs","repos_url":"https://api.github.com/users/Uran198/repos","events_url":"https://api.github.com/users/Uran198/events{/privacy}","received_events_url":"https://api.github.com/users/Uran198/received_events","type":"User","site_admin":false},"assignees":[{"login":"Uran198","id":3969221,"avatar_url":"https://avatars.githubusercontent.com/u/3969221?v=3","gravatar_id":"","url":"https://api.github.com/users/Uran198","html_url":"https://github.com/Uran198","followers_url":"https://api.github.com/users/Uran198/followers","following_url":"https://api.github.com/users/Uran198/following{/other_user}","gists_url":"https://api.github.com/users/Uran198/gists{/gist_id}","starred_url":"https://api.github.com/users/Uran198/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uran198/subscriptions","organizations_url":"https://api.github.com/users/Uran198/orgs","repos_url":"https://api.github.com/users/Uran198/repos","events_url":"https://api.github.com/users/Uran198/events{/privacy}","received_events_url":"https://api.github.com/users/Uran198/received_events","type":"User","site_admin":false}],"milestone":null,"comments":29,"created_at":"2015-10-02T23:20:01Z","updated_at":"2016-06-30T08:44:46Z","closed_at":null,"body":"This would allow to keep some components more standalone that issue warnings, because we don't need to pass a printer to them^^\r\nThe warning messages can be fetched in the coala analyzation process where they can be printed:\r\n```python\r\nimport warnings\r\n\r\nwith warnings.catch_warnings(record=True) as w:\r\n    # No panic, after exiting the context manager the previous filter value is restored.\r\n    warnings.simplefilter(\"always\")\r\n    a_task_that_can_issue_warnings(...)\r\n    # 'w' contains now all warning messages (more precise, WarningMessage objects).\r\n    # We can print them with some 'warnings' functions and redirect them to our\r\n    # logprinter inside the coala toolchain.\r\n    for warning in w:\r\n        # Sadly this won't work, we need to pass each member of `warning` to formatwarning().\r\n        log_printer.print(warnings.formatwarning(warning))\r\n```"},"comment":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/comments/229599041","html_url":"https://github.com/coala-analyzer/coala/issues/975#issuecomment-229599041","issue_url":"https://api.github.com/repos/coala-analyzer/coala/issues/975","id":229599041,"user":{"login":"Uran198","id":3969221,"avatar_url":"https://avatars.githubusercontent.com/u/3969221?v=3","gravatar_id":"","url":"https://api.github.com/users/Uran198","html_url":"https://github.com/Uran198","followers_url":"https://api.github.com/users/Uran198/followers","following_url":"https://api.github.com/users/Uran198/following{/other_user}","gists_url":"https://api.github.com/users/Uran198/gists{/gist_id}","starred_url":"https://api.github.com/users/Uran198/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uran198/subscriptions","organizations_url":"https://api.github.com/users/Uran198/orgs","repos_url":"https://api.github.com/users/Uran198/repos","events_url":"https://api.github.com/users/Uran198/events{/privacy}","received_events_url":"https://api.github.com/users/Uran198/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T08:44:46Z","updated_at":"2016-06-30T08:44:46Z","body":"[Here](https://github.com/coala-analyzer/coala/pull/2409) is a possible way of implementing it.\r\nMaybe there is better approach that I'm missing."}}
{"actor":{"display_login":"Uran198"}}