{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14","id":125080457,"html_url":"https://github.com/ONSdigital/ras-collection-instrument/pull/14","diff_url":"https://github.com/ONSdigital/ras-collection-instrument/pull/14.diff","patch_url":"https://github.com/ONSdigital/ras-collection-instrument/pull/14.patch","issue_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/14","number":14,"state":"closed","locked":false,"title":"First pass at structured logging to JSON (eQ and SDX)","user":{"login":"liamtoozer","id":23473592,"avatar_url":"https://avatars2.githubusercontent.com/u/23473592?v=3","gravatar_id":"","url":"https://api.github.com/users/liamtoozer","html_url":"https://github.com/liamtoozer","followers_url":"https://api.github.com/users/liamtoozer/followers","following_url":"https://api.github.com/users/liamtoozer/following{/other_user}","gists_url":"https://api.github.com/users/liamtoozer/gists{/gist_id}","starred_url":"https://api.github.com/users/liamtoozer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamtoozer/subscriptions","organizations_url":"https://api.github.com/users/liamtoozer/orgs","repos_url":"https://api.github.com/users/liamtoozer/repos","events_url":"https://api.github.com/users/liamtoozer/events{/privacy}","received_events_url":"https://api.github.com/users/liamtoozer/received_events","type":"User","site_admin":false},"body":"### What is the context of this PR?\r\nAdded initial use of structlog (taken from eQ and SDX) to enable JSON log output.\r\n\r\n### How to review \r\nStart the server (see README) and ensure a request to an end point shows output in JSON format. E.g.\r\n`curl -X GET --header 'Accept: application/json' 'http://localhost:8080 /collection-instrument-api/1.0.2/collectioninstrument?searchString=%7B%22SIZE%22%3A%20%2225%22%7D'`","created_at":"2017-06-12T08:11:59Z","updated_at":"2017-06-22T10:14:25Z","closed_at":"2017-06-22T10:14:25Z","merged_at":null,"merge_commit_sha":"2795d5448abd38202504551685dd4d9887afeacd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/14/comments","statuses_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/statuses/dbbab2373901617100370a38bc4a829b71cb8c2c","head":{"label":"ONSdigital:TBL-038/align-logging-format","ref":"TBL-038/align-logging-format","sha":"dbbab2373901617100370a38bc4a829b71cb8c2c","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82173108,"name":"ras-collection-instrument","full_name":"ONSdigital/ras-collection-instrument","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/ras-collection-instrument","description":"The ONS respondent account service 'collection instrument' micro service.","fork":false,"url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument","forks_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/forks","keys_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/teams","hooks_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/events","assignees_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/tags","blobs_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/subscription","commits_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/merges","archive_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/downloads","issues_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/deployments","created_at":"2017-02-16T11:21:51Z","updated_at":"2017-03-01T17:08:40Z","pushed_at":"2017-06-22T10:13:13Z","git_url":"git://github.com/ONSdigital/ras-collection-instrument.git","ssh_url":"git@github.com:ONSdigital/ras-collection-instrument.git","clone_url":"https://github.com/ONSdigital/ras-collection-instrument.git","svn_url":"https://github.com/ONSdigital/ras-collection-instrument","homepage":null,"size":462,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"affd9ad513f33bb054aee79ec30531fb68730e56","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82173108,"name":"ras-collection-instrument","full_name":"ONSdigital/ras-collection-instrument","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/ras-collection-instrument","description":"The ONS respondent account service 'collection instrument' micro service.","fork":false,"url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument","forks_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/forks","keys_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/teams","hooks_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/events","assignees_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/tags","blobs_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/subscription","commits_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/merges","archive_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/downloads","issues_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/deployments","created_at":"2017-02-16T11:21:51Z","updated_at":"2017-03-01T17:08:40Z","pushed_at":"2017-06-22T10:13:13Z","git_url":"git://github.com/ONSdigital/ras-collection-instrument.git","ssh_url":"git@github.com:ONSdigital/ras-collection-instrument.git","clone_url":"https://github.com/ONSdigital/ras-collection-instrument.git","svn_url":"https://github.com/ONSdigital/ras-collection-instrument","homepage":null,"size":462,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14"},"html":{"href":"https://github.com/ONSdigital/ras-collection-instrument/pull/14"},"issue":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/14"},"comments":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/ras-collection-instrument/statuses/dbbab2373901617100370a38bc4a829b71cb8c2c"}},"merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":3,"maintainer_can_modify":false,"commits":2,"additions":104,"deletions":8,"changed_files":7}}
{"actor":{"display_login":"LJBabbage"}}