{"action":"created","comment":{"url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/comments/32605038","id":32605038,"diff_hunk":"@@ -1,7 +1,11 @@\n require 'alephant/cache/version'\n require 'alephant/logger'\n+require 'alephant/logger/json'\n require 'aws-sdk'\n \n+json_driver = Alephant::Logger::JSON.new(ENV[\"APP_LOG_LOCATION\"] ||= \"app.log\")","path":"lib/alephant/cache.rb","position":6,"original_position":6,"commit_id":"04ba55174efeb491ff721e251d67191f883ba4ac","original_commit_id":"04ba55174efeb491ff721e251d67191f883ba4ac","user":{"login":"Integralist","id":180050,"avatar_url":"https://avatars.githubusercontent.com/u/180050?v=3","gravatar_id":"","url":"https://api.github.com/users/Integralist","html_url":"https://github.com/Integralist","followers_url":"https://api.github.com/users/Integralist/followers","following_url":"https://api.github.com/users/Integralist/following{/other_user}","gists_url":"https://api.github.com/users/Integralist/gists{/gist_id}","starred_url":"https://api.github.com/users/Integralist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Integralist/subscriptions","organizations_url":"https://api.github.com/users/Integralist/orgs","repos_url":"https://api.github.com/users/Integralist/repos","events_url":"https://api.github.com/users/Integralist/events{/privacy}","received_events_url":"https://api.github.com/users/Integralist/received_events","type":"User","site_admin":false},"body":"That's a very good point :-)","created_at":"2015-06-17T08:35:39Z","updated_at":"2015-06-17T08:35:39Z","html_url":"https://github.com/BBC-News/alephant-cache/pull/6#discussion_r32605038","pull_request_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/comments/32605038"},"html":{"href":"https://github.com/BBC-News/alephant-cache/pull/6#discussion_r32605038"},"pull_request":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6","id":37874053,"html_url":"https://github.com/BBC-News/alephant-cache/pull/6","diff_url":"https://github.com/BBC-News/alephant-cache/pull/6.diff","patch_url":"https://github.com/BBC-News/alephant-cache/pull/6.patch","issue_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/6","number":6,"state":"open","locked":false,"title":"Logger json","user":{"login":"Integralist","id":180050,"avatar_url":"https://avatars.githubusercontent.com/u/180050?v=3","gravatar_id":"","url":"https://api.github.com/users/Integralist","html_url":"https://github.com/Integralist","followers_url":"https://api.github.com/users/Integralist/followers","following_url":"https://api.github.com/users/Integralist/following{/other_user}","gists_url":"https://api.github.com/users/Integralist/gists{/gist_id}","starred_url":"https://api.github.com/users/Integralist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Integralist/subscriptions","organizations_url":"https://api.github.com/users/Integralist/orgs","repos_url":"https://api.github.com/users/Integralist/repos","events_url":"https://api.github.com/users/Integralist/events{/privacy}","received_events_url":"https://api.github.com/users/Integralist/received_events","type":"User","site_admin":false},"body":"## Problem\r\n\r\nWe want to incorporate JSON formatted logging\r\n\r\n## Solution\r\n\r\nImplement the Alephant-Logger-Json gem","created_at":"2015-06-17T07:52:31Z","updated_at":"2015-06-17T08:35:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0df1cb3a8eb64f43fbe774de31fd3e3a03dc90a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6/commits","review_comments_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6/comments","review_comment_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/6/comments","statuses_url":"https://api.github.com/repos/BBC-News/alephant-cache/statuses/04ba55174efeb491ff721e251d67191f883ba4ac","head":{"label":"BBC-News:logger-json","ref":"logger-json","sha":"04ba55174efeb491ff721e251d67191f883ba4ac","user":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"repo":{"id":16804646,"name":"alephant-cache","full_name":"BBC-News/alephant-cache","owner":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BBC-News/alephant-cache","description":"Simple abstraction layer over S3 for get/put.","fork":false,"url":"https://api.github.com/repos/BBC-News/alephant-cache","forks_url":"https://api.github.com/repos/BBC-News/alephant-cache/forks","keys_url":"https://api.github.com/repos/BBC-News/alephant-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBC-News/alephant-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBC-News/alephant-cache/teams","hooks_url":"https://api.github.com/repos/BBC-News/alephant-cache/hooks","issue_events_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/events{/number}","events_url":"https://api.github.com/repos/BBC-News/alephant-cache/events","assignees_url":"https://api.github.com/repos/BBC-News/alephant-cache/assignees{/user}","branches_url":"https://api.github.com/repos/BBC-News/alephant-cache/branches{/branch}","tags_url":"https://api.github.com/repos/BBC-News/alephant-cache/tags","blobs_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBC-News/alephant-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/BBC-News/alephant-cache/languages","stargazers_url":"https://api.github.com/repos/BBC-News/alephant-cache/stargazers","contributors_url":"https://api.github.com/repos/BBC-News/alephant-cache/contributors","subscribers_url":"https://api.github.com/repos/BBC-News/alephant-cache/subscribers","subscription_url":"https://api.github.com/repos/BBC-News/alephant-cache/subscription","commits_url":"https://api.github.com/repos/BBC-News/alephant-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBC-News/alephant-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBC-News/alephant-cache/contents/{+path}","compare_url":"https://api.github.com/repos/BBC-News/alephant-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBC-News/alephant-cache/merges","archive_url":"https://api.github.com/repos/BBC-News/alephant-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBC-News/alephant-cache/downloads","issues_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues{/number}","pulls_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/BBC-News/alephant-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/BBC-News/alephant-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBC-News/alephant-cache/labels{/name}","releases_url":"https://api.github.com/repos/BBC-News/alephant-cache/releases{/id}","created_at":"2014-02-13T14:07:05Z","updated_at":"2015-04-23T14:50:28Z","pushed_at":"2015-06-17T07:52:31Z","git_url":"git://github.com/BBC-News/alephant-cache.git","ssh_url":"git@github.com:BBC-News/alephant-cache.git","clone_url":"https://github.com/BBC-News/alephant-cache.git","svn_url":"https://github.com/BBC-News/alephant-cache","homepage":null,"size":276,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"BBC-News:master","ref":"master","sha":"fefef9885b9a625d18ae4b15c6f8425b5877d3c3","user":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"repo":{"id":16804646,"name":"alephant-cache","full_name":"BBC-News/alephant-cache","owner":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BBC-News/alephant-cache","description":"Simple abstraction layer over S3 for get/put.","fork":false,"url":"https://api.github.com/repos/BBC-News/alephant-cache","forks_url":"https://api.github.com/repos/BBC-News/alephant-cache/forks","keys_url":"https://api.github.com/repos/BBC-News/alephant-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBC-News/alephant-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBC-News/alephant-cache/teams","hooks_url":"https://api.github.com/repos/BBC-News/alephant-cache/hooks","issue_events_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/events{/number}","events_url":"https://api.github.com/repos/BBC-News/alephant-cache/events","assignees_url":"https://api.github.com/repos/BBC-News/alephant-cache/assignees{/user}","branches_url":"https://api.github.com/repos/BBC-News/alephant-cache/branches{/branch}","tags_url":"https://api.github.com/repos/BBC-News/alephant-cache/tags","blobs_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBC-News/alephant-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/BBC-News/alephant-cache/languages","stargazers_url":"https://api.github.com/repos/BBC-News/alephant-cache/stargazers","contributors_url":"https://api.github.com/repos/BBC-News/alephant-cache/contributors","subscribers_url":"https://api.github.com/repos/BBC-News/alephant-cache/subscribers","subscription_url":"https://api.github.com/repos/BBC-News/alephant-cache/subscription","commits_url":"https://api.github.com/repos/BBC-News/alephant-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBC-News/alephant-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBC-News/alephant-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBC-News/alephant-cache/contents/{+path}","compare_url":"https://api.github.com/repos/BBC-News/alephant-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBC-News/alephant-cache/merges","archive_url":"https://api.github.com/repos/BBC-News/alephant-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBC-News/alephant-cache/downloads","issues_url":"https://api.github.com/repos/BBC-News/alephant-cache/issues{/number}","pulls_url":"https://api.github.com/repos/BBC-News/alephant-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/BBC-News/alephant-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/BBC-News/alephant-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBC-News/alephant-cache/labels{/name}","releases_url":"https://api.github.com/repos/BBC-News/alephant-cache/releases{/id}","created_at":"2014-02-13T14:07:05Z","updated_at":"2015-04-23T14:50:28Z","pushed_at":"2015-06-17T07:52:31Z","git_url":"git://github.com/BBC-News/alephant-cache.git","ssh_url":"git@github.com:BBC-News/alephant-cache.git","clone_url":"https://github.com/BBC-News/alephant-cache.git","svn_url":"https://github.com/BBC-News/alephant-cache","homepage":null,"size":276,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6"},"html":{"href":"https://github.com/BBC-News/alephant-cache/pull/6"},"issue":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/issues/6"},"comments":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/BBC-News/alephant-cache/statuses/04ba55174efeb491ff721e251d67191f883ba4ac"}}}}