{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9","id":235260185,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MjYwMTg1","html_url":"https://github.com/nefarioustim/cerberus-auth/pull/9","diff_url":"https://github.com/nefarioustim/cerberus-auth/pull/9.diff","patch_url":"https://github.com/nefarioustim/cerberus-auth/pull/9.patch","issue_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/9","number":9,"state":"closed","locked":false,"title":"Resolve #8: Add a logging handler","user":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"body":"This change provides logging setup for the microservice.\r\n\r\nOn initialisation, the service should call:\r\n\r\n```python\r\nlogger.setup_logging()\r\n```\r\n\r\nThis will attempt to set-up `logging` based on the configuration file `logging.yml`. This configuration can be overridden by passing the path to a similar YAML file as the ENV variable `LOGGING_CONFIG_FILE`.\r\n\r\nOnce set-up, the rest of the microservice can simply create a `logging` instance as normal, with:\r\n\r\n```python\r\nimport logging\r\n\r\nlogger = logging.getLogger(__name__)\r\n```","created_at":"2018-12-02T13:52:30Z","updated_at":"2018-12-02T14:13:43Z","closed_at":"2018-12-02T14:13:42Z","merged_at":"2018-12-02T14:13:42Z","merge_commit_sha":"5f66660270f6402a5622aad88792597ba65aba10","assignee":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"assignees":[{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1140228936,"node_id":"MDU6TGFiZWwxMTQwMjI4OTM2","url":"https://api.github.com/repos/nefarioustim/cerberus-auth/labels/task","name":"task","color":"16c96f","default":false}],"milestone":{"url":"https://api.github.com/repos/nefarioustim/cerberus-auth/milestones/1","html_url":"https://github.com/nefarioustim/cerberus-auth/milestone/1","labels_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/milestones/1/labels","id":3847565,"node_id":"MDk6TWlsZXN0b25lMzg0NzU2NQ==","number":1,"title":"MVP","description":null,"creator":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":5,"state":"open","created_at":"2018-11-26T09:15:39Z","updated_at":"2018-12-02T14:13:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9/commits","review_comments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9/comments","review_comment_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/9/comments","statuses_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/statuses/fa922bbd9aa991325559181c6eca7b0b3877e9d0","head":{"label":"nefarioustim:task/8/add-logging","ref":"task/8/add-logging","sha":"fa922bbd9aa991325559181c6eca7b0b3877e9d0","user":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"repo":{"id":159020890,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkwMjA4OTA=","name":"cerberus-auth","full_name":"nefarioustim/cerberus-auth","private":false,"owner":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nefarioustim/cerberus-auth","description":"Cerberus is an authentication and authorisation microservice, built with Python.","fork":false,"url":"https://api.github.com/repos/nefarioustim/cerberus-auth","forks_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/forks","keys_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/teams","hooks_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/hooks","issue_events_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/events{/number}","events_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/events","assignees_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/assignees{/user}","branches_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/branches{/branch}","tags_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/tags","blobs_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/languages","stargazers_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/stargazers","contributors_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/contributors","subscribers_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/subscribers","subscription_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/subscription","commits_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/contents/{+path}","compare_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/merges","archive_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/downloads","issues_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues{/number}","pulls_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/labels{/name}","releases_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/releases{/id}","deployments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/deployments","created_at":"2018-11-25T10:37:54Z","updated_at":"2018-12-01T22:06:49Z","pushed_at":"2018-12-02T14:13:42Z","git_url":"git://github.com/nefarioustim/cerberus-auth.git","ssh_url":"git@github.com:nefarioustim/cerberus-auth.git","clone_url":"https://github.com/nefarioustim/cerberus-auth.git","svn_url":"https://github.com/nefarioustim/cerberus-auth","homepage":"","size":98,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"nefarioustim:master","ref":"master","sha":"b50326a8f13d5250c0e7bf5a159105a593231eec","user":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"repo":{"id":159020890,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkwMjA4OTA=","name":"cerberus-auth","full_name":"nefarioustim/cerberus-auth","private":false,"owner":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nefarioustim/cerberus-auth","description":"Cerberus is an authentication and authorisation microservice, built with Python.","fork":false,"url":"https://api.github.com/repos/nefarioustim/cerberus-auth","forks_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/forks","keys_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/teams","hooks_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/hooks","issue_events_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/events{/number}","events_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/events","assignees_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/assignees{/user}","branches_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/branches{/branch}","tags_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/tags","blobs_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/languages","stargazers_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/stargazers","contributors_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/contributors","subscribers_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/subscribers","subscription_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/subscription","commits_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/contents/{+path}","compare_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/merges","archive_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/downloads","issues_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues{/number}","pulls_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/labels{/name}","releases_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/releases{/id}","deployments_url":"https://api.github.com/repos/nefarioustim/cerberus-auth/deployments","created_at":"2018-11-25T10:37:54Z","updated_at":"2018-12-01T22:06:49Z","pushed_at":"2018-12-02T14:13:42Z","git_url":"git://github.com/nefarioustim/cerberus-auth.git","ssh_url":"git@github.com:nefarioustim/cerberus-auth.git","clone_url":"https://github.com/nefarioustim/cerberus-auth.git","svn_url":"https://github.com/nefarioustim/cerberus-auth","homepage":"","size":98,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9"},"html":{"href":"https://github.com/nefarioustim/cerberus-auth/pull/9"},"issue":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/9"},"comments":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/nefarioustim/cerberus-auth/statuses/fa922bbd9aa991325559181c6eca7b0b3877e9d0"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"nefarioustim","id":33619,"node_id":"MDQ6VXNlcjMzNjE5","avatar_url":"https://avatars2.githubusercontent.com/u/33619?v=4","gravatar_id":"","url":"https://api.github.com/users/nefarioustim","html_url":"https://github.com/nefarioustim","followers_url":"https://api.github.com/users/nefarioustim/followers","following_url":"https://api.github.com/users/nefarioustim/following{/other_user}","gists_url":"https://api.github.com/users/nefarioustim/gists{/gist_id}","starred_url":"https://api.github.com/users/nefarioustim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nefarioustim/subscriptions","organizations_url":"https://api.github.com/users/nefarioustim/orgs","repos_url":"https://api.github.com/users/nefarioustim/repos","events_url":"https://api.github.com/users/nefarioustim/events{/privacy}","received_events_url":"https://api.github.com/users/nefarioustim/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":133,"deletions":2,"changed_files":6}}
{"actor":{"display_login":"nefarioustim"}}