{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42","id":84279829,"html_url":"https://github.com/ministryofjustice/apvs/pull/42","diff_url":"https://github.com/ministryofjustice/apvs/pull/42.diff","patch_url":"https://github.com/ministryofjustice/apvs/pull/42.patch","issue_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/42","number":42,"state":"open","locked":false,"title":"Feature/apvs 022/add bunyan logging","user":{"login":"tmrowe","id":12531502,"avatar_url":"https://avatars.githubusercontent.com/u/12531502?v=3","gravatar_id":"","url":"https://api.github.com/users/tmrowe","html_url":"https://github.com/tmrowe","followers_url":"https://api.github.com/users/tmrowe/followers","following_url":"https://api.github.com/users/tmrowe/following{/other_user}","gists_url":"https://api.github.com/users/tmrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/tmrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmrowe/subscriptions","organizations_url":"https://api.github.com/users/tmrowe/orgs","repos_url":"https://api.github.com/users/tmrowe/repos","events_url":"https://api.github.com/users/tmrowe/events{/privacy}","received_events_url":"https://api.github.com/users/tmrowe/received_events","type":"User","site_admin":false},"body":"- Added dependency on bunyan & bunyan-prettystream for both applications.\r\n- Added volume config to docker-compose to store the log files on the local system rather than on the container.\r\n- Added line to gitignore to ignore all log files.\r\n- Added a Bunyan logger that can be added into existing JavaScript files. We can define child loggers as required. Right now just using a single named logger for each application.\r\n- The logger defines a serializer for outputting basic HTTP request information (method, url, and params).\r\n- Replaced all console.log lines with bunyan logging\r\n- Setup pretty printing for the logging to stdout. The stream logging to file logs JSON.\r\n\r\nDue to the addition of the new node dependencies you will need to run:\r\n`docker-compose build`\r\n\r\nPrior to running:\r\n`docker-compose up`","created_at":"2016-09-07T11:04:42Z","updated_at":"2016-09-07T11:04:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"tswann","id":509115,"avatar_url":"https://avatars.githubusercontent.com/u/509115?v=3","gravatar_id":"","url":"https://api.github.com/users/tswann","html_url":"https://github.com/tswann","followers_url":"https://api.github.com/users/tswann/followers","following_url":"https://api.github.com/users/tswann/following{/other_user}","gists_url":"https://api.github.com/users/tswann/gists{/gist_id}","starred_url":"https://api.github.com/users/tswann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswann/subscriptions","organizations_url":"https://api.github.com/users/tswann/orgs","repos_url":"https://api.github.com/users/tswann/repos","events_url":"https://api.github.com/users/tswann/events{/privacy}","received_events_url":"https://api.github.com/users/tswann/received_events","type":"User","site_admin":false},"assignees":[{"login":"tswann","id":509115,"avatar_url":"https://avatars.githubusercontent.com/u/509115?v=3","gravatar_id":"","url":"https://api.github.com/users/tswann","html_url":"https://github.com/tswann","followers_url":"https://api.github.com/users/tswann/followers","following_url":"https://api.github.com/users/tswann/following{/other_user}","gists_url":"https://api.github.com/users/tswann/gists{/gist_id}","starred_url":"https://api.github.com/users/tswann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswann/subscriptions","organizations_url":"https://api.github.com/users/tswann/orgs","repos_url":"https://api.github.com/users/tswann/repos","events_url":"https://api.github.com/users/tswann/events{/privacy}","received_events_url":"https://api.github.com/users/tswann/received_events","type":"User","site_admin":false},{"login":"stevenalexander","id":1783543,"avatar_url":"https://avatars.githubusercontent.com/u/1783543?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenalexander","html_url":"https://github.com/stevenalexander","followers_url":"https://api.github.com/users/stevenalexander/followers","following_url":"https://api.github.com/users/stevenalexander/following{/other_user}","gists_url":"https://api.github.com/users/stevenalexander/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenalexander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenalexander/subscriptions","organizations_url":"https://api.github.com/users/stevenalexander/orgs","repos_url":"https://api.github.com/users/stevenalexander/repos","events_url":"https://api.github.com/users/stevenalexander/events{/privacy}","received_events_url":"https://api.github.com/users/stevenalexander/received_events","type":"User","site_admin":false},{"login":"pwright08","id":9826034,"avatar_url":"https://avatars.githubusercontent.com/u/9826034?v=3","gravatar_id":"","url":"https://api.github.com/users/pwright08","html_url":"https://github.com/pwright08","followers_url":"https://api.github.com/users/pwright08/followers","following_url":"https://api.github.com/users/pwright08/following{/other_user}","gists_url":"https://api.github.com/users/pwright08/gists{/gist_id}","starred_url":"https://api.github.com/users/pwright08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwright08/subscriptions","organizations_url":"https://api.github.com/users/pwright08/orgs","repos_url":"https://api.github.com/users/pwright08/repos","events_url":"https://api.github.com/users/pwright08/events{/privacy}","received_events_url":"https://api.github.com/users/pwright08/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/apvs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/42/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/apvs/statuses/b70b6926e73abde5742e0b0884f97ae4571eb3ea","head":{"label":"ministryofjustice:feature/apvs-022/add-bunyan-logging","ref":"feature/apvs-022/add-bunyan-logging","sha":"b70b6926e73abde5742e0b0884f97ae4571eb3ea","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":65722967,"name":"apvs","full_name":"ministryofjustice/apvs","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/apvs","description":"Assisted Prison Visits Scheme","fork":false,"url":"https://api.github.com/repos/ministryofjustice/apvs","forks_url":"https://api.github.com/repos/ministryofjustice/apvs/forks","keys_url":"https://api.github.com/repos/ministryofjustice/apvs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/apvs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/apvs/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/apvs/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/apvs/events","assignees_url":"https://api.github.com/repos/ministryofjustice/apvs/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/apvs/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/apvs/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/apvs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/apvs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/apvs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/apvs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/apvs/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/apvs/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/apvs/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/apvs/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/apvs/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/apvs/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/apvs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/apvs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/apvs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/apvs/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/apvs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/apvs/merges","archive_url":"https://api.github.com/repos/ministryofjustice/apvs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/apvs/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/apvs/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/apvs/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/apvs/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/apvs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/apvs/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/apvs/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/apvs/deployments","created_at":"2016-08-15T10:03:09Z","updated_at":"2016-08-25T14:55:29Z","pushed_at":"2016-09-07T11:04:42Z","git_url":"git://github.com/ministryofjustice/apvs.git","ssh_url":"git@github.com:ministryofjustice/apvs.git","clone_url":"https://github.com/ministryofjustice/apvs.git","svn_url":"https://github.com/ministryofjustice/apvs","homepage":null,"size":631,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"ministryofjustice:develop","ref":"develop","sha":"89414afbd4fd8a2a07f460b9aa25d3f6774a6f6f","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":65722967,"name":"apvs","full_name":"ministryofjustice/apvs","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/apvs","description":"Assisted Prison Visits Scheme","fork":false,"url":"https://api.github.com/repos/ministryofjustice/apvs","forks_url":"https://api.github.com/repos/ministryofjustice/apvs/forks","keys_url":"https://api.github.com/repos/ministryofjustice/apvs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/apvs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/apvs/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/apvs/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/apvs/events","assignees_url":"https://api.github.com/repos/ministryofjustice/apvs/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/apvs/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/apvs/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/apvs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/apvs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/apvs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/apvs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/apvs/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/apvs/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/apvs/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/apvs/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/apvs/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/apvs/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/apvs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/apvs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/apvs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/apvs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/apvs/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/apvs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/apvs/merges","archive_url":"https://api.github.com/repos/ministryofjustice/apvs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/apvs/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/apvs/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/apvs/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/apvs/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/apvs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/apvs/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/apvs/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/apvs/deployments","created_at":"2016-08-15T10:03:09Z","updated_at":"2016-08-25T14:55:29Z","pushed_at":"2016-09-07T11:04:42Z","git_url":"git://github.com/ministryofjustice/apvs.git","ssh_url":"git@github.com:ministryofjustice/apvs.git","clone_url":"https://github.com/ministryofjustice/apvs.git","svn_url":"https://github.com/ministryofjustice/apvs","homepage":null,"size":631,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42"},"html":{"href":"https://github.com/ministryofjustice/apvs/pull/42"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/apvs/issues/42"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/apvs/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/apvs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/apvs/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/apvs/statuses/b70b6926e73abde5742e0b0884f97ae4571eb3ea"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":176,"deletions":96,"changed_files":20}}
{"actor":{"display_login":"tmrowe"}}