{"action":"opened","number":140,"pull_request":{"url":"https://api.github.com/repos/tomykaira/clockwork/pulls/140","id":28395713,"html_url":"https://github.com/tomykaira/clockwork/pull/140","diff_url":"https://github.com/tomykaira/clockwork/pull/140.diff","patch_url":"https://github.com/tomykaira/clockwork/pull/140.patch","issue_url":"https://api.github.com/repos/tomykaira/clockwork/issues/140","number":140,"state":"open","locked":false,"title":"Customizable logging","user":{"login":"mikehale","id":1583,"avatar_url":"https://avatars.githubusercontent.com/u/1583?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehale","html_url":"https://github.com/mikehale","followers_url":"https://api.github.com/users/mikehale/followers","following_url":"https://api.github.com/users/mikehale/following{/other_user}","gists_url":"https://api.github.com/users/mikehale/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehale/subscriptions","organizations_url":"https://api.github.com/users/mikehale/orgs","repos_url":"https://api.github.com/users/mikehale/repos","events_url":"https://api.github.com/users/mikehale/events{/privacy}","received_events_url":"https://api.github.com/users/mikehale/received_events","type":"User","site_admin":false},"body":"This allows the logging of messages and errors to be customized for the case where the logger does not conform to `logger.error(e)` and `logger.info(msg)` interface.\r\n\r\nThinking about this more now though perhaps I could have just injected an adapter object that expected calls to `error` and `info` and passed them to my logger in the format it expects.","created_at":"2015-01-30T21:44:28Z","updated_at":"2015-01-30T21:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomykaira/clockwork/pulls/140/commits","review_comments_url":"https://api.github.com/repos/tomykaira/clockwork/pulls/140/comments","review_comment_url":"https://api.github.com/repos/tomykaira/clockwork/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tomykaira/clockwork/issues/140/comments","statuses_url":"https://api.github.com/repos/tomykaira/clockwork/statuses/85e92fcf05a29ae1aaf0d82bf6a3670c09a11e54","head":{"label":"mikehale:customizable-logging","ref":"customizable-logging","sha":"85e92fcf05a29ae1aaf0d82bf6a3670c09a11e54","user":{"login":"mikehale","id":1583,"avatar_url":"https://avatars.githubusercontent.com/u/1583?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehale","html_url":"https://github.com/mikehale","followers_url":"https://api.github.com/users/mikehale/followers","following_url":"https://api.github.com/users/mikehale/following{/other_user}","gists_url":"https://api.github.com/users/mikehale/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehale/subscriptions","organizations_url":"https://api.github.com/users/mikehale/orgs","repos_url":"https://api.github.com/users/mikehale/repos","events_url":"https://api.github.com/users/mikehale/events{/privacy}","received_events_url":"https://api.github.com/users/mikehale/received_events","type":"User","site_admin":false},"repo":{"id":29360230,"name":"clockwork","full_name":"mikehale/clockwork","owner":{"login":"mikehale","id":1583,"avatar_url":"https://avatars.githubusercontent.com/u/1583?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehale","html_url":"https://github.com/mikehale","followers_url":"https://api.github.com/users/mikehale/followers","following_url":"https://api.github.com/users/mikehale/following{/other_user}","gists_url":"https://api.github.com/users/mikehale/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehale/subscriptions","organizations_url":"https://api.github.com/users/mikehale/orgs","repos_url":"https://api.github.com/users/mikehale/repos","events_url":"https://api.github.com/users/mikehale/events{/privacy}","received_events_url":"https://api.github.com/users/mikehale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikehale/clockwork","description":"A scheduler process to replace cron.","fork":true,"url":"https://api.github.com/repos/mikehale/clockwork","forks_url":"https://api.github.com/repos/mikehale/clockwork/forks","keys_url":"https://api.github.com/repos/mikehale/clockwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikehale/clockwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikehale/clockwork/teams","hooks_url":"https://api.github.com/repos/mikehale/clockwork/hooks","issue_events_url":"https://api.github.com/repos/mikehale/clockwork/issues/events{/number}","events_url":"https://api.github.com/repos/mikehale/clockwork/events","assignees_url":"https://api.github.com/repos/mikehale/clockwork/assignees{/user}","branches_url":"https://api.github.com/repos/mikehale/clockwork/branches{/branch}","tags_url":"https://api.github.com/repos/mikehale/clockwork/tags","blobs_url":"https://api.github.com/repos/mikehale/clockwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikehale/clockwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikehale/clockwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikehale/clockwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikehale/clockwork/statuses/{sha}","languages_url":"https://api.github.com/repos/mikehale/clockwork/languages","stargazers_url":"https://api.github.com/repos/mikehale/clockwork/stargazers","contributors_url":"https://api.github.com/repos/mikehale/clockwork/contributors","subscribers_url":"https://api.github.com/repos/mikehale/clockwork/subscribers","subscription_url":"https://api.github.com/repos/mikehale/clockwork/subscription","commits_url":"https://api.github.com/repos/mikehale/clockwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikehale/clockwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikehale/clockwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikehale/clockwork/issues/comments/{number}","contents_url":"https://api.github.com/repos/mikehale/clockwork/contents/{+path}","compare_url":"https://api.github.com/repos/mikehale/clockwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikehale/clockwork/merges","archive_url":"https://api.github.com/repos/mikehale/clockwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikehale/clockwork/downloads","issues_url":"https://api.github.com/repos/mikehale/clockwork/issues{/number}","pulls_url":"https://api.github.com/repos/mikehale/clockwork/pulls{/number}","milestones_url":"https://api.github.com/repos/mikehale/clockwork/milestones{/number}","notifications_url":"https://api.github.com/repos/mikehale/clockwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikehale/clockwork/labels{/name}","releases_url":"https://api.github.com/repos/mikehale/clockwork/releases{/id}","created_at":"2015-01-16T17:48:35Z","updated_at":"2015-01-16T17:48:35Z","pushed_at":"2015-01-30T21:43:12Z","git_url":"git://github.com/mikehale/clockwork.git","ssh_url":"git@github.com:mikehale/clockwork.git","clone_url":"https://github.com/mikehale/clockwork.git","svn_url":"https://github.com/mikehale/clockwork","homepage":"","size":1208,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"tomykaira:master","ref":"master","sha":"ae2c83d5eee7fda268e03a51edf4e8500a6488ef","user":{"login":"tomykaira","id":789929,"avatar_url":"https://avatars.githubusercontent.com/u/789929?v=3","gravatar_id":"","url":"https://api.github.com/users/tomykaira","html_url":"https://github.com/tomykaira","followers_url":"https://api.github.com/users/tomykaira/followers","following_url":"https://api.github.com/users/tomykaira/following{/other_user}","gists_url":"https://api.github.com/users/tomykaira/gists{/gist_id}","starred_url":"https://api.github.com/users/tomykaira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomykaira/subscriptions","organizations_url":"https://api.github.com/users/tomykaira/orgs","repos_url":"https://api.github.com/users/tomykaira/repos","events_url":"https://api.github.com/users/tomykaira/events{/privacy}","received_events_url":"https://api.github.com/users/tomykaira/received_events","type":"User","site_admin":false},"repo":{"id":2555236,"name":"clockwork","full_name":"tomykaira/clockwork","owner":{"login":"tomykaira","id":789929,"avatar_url":"https://avatars.githubusercontent.com/u/789929?v=3","gravatar_id":"","url":"https://api.github.com/users/tomykaira","html_url":"https://github.com/tomykaira","followers_url":"https://api.github.com/users/tomykaira/followers","following_url":"https://api.github.com/users/tomykaira/following{/other_user}","gists_url":"https://api.github.com/users/tomykaira/gists{/gist_id}","starred_url":"https://api.github.com/users/tomykaira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomykaira/subscriptions","organizations_url":"https://api.github.com/users/tomykaira/orgs","repos_url":"https://api.github.com/users/tomykaira/repos","events_url":"https://api.github.com/users/tomykaira/events{/privacy}","received_events_url":"https://api.github.com/users/tomykaira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomykaira/clockwork","description":"A scheduler process to replace cron.","fork":true,"url":"https://api.github.com/repos/tomykaira/clockwork","forks_url":"https://api.github.com/repos/tomykaira/clockwork/forks","keys_url":"https://api.github.com/repos/tomykaira/clockwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomykaira/clockwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomykaira/clockwork/teams","hooks_url":"https://api.github.com/repos/tomykaira/clockwork/hooks","issue_events_url":"https://api.github.com/repos/tomykaira/clockwork/issues/events{/number}","events_url":"https://api.github.com/repos/tomykaira/clockwork/events","assignees_url":"https://api.github.com/repos/tomykaira/clockwork/assignees{/user}","branches_url":"https://api.github.com/repos/tomykaira/clockwork/branches{/branch}","tags_url":"https://api.github.com/repos/tomykaira/clockwork/tags","blobs_url":"https://api.github.com/repos/tomykaira/clockwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomykaira/clockwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomykaira/clockwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomykaira/clockwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomykaira/clockwork/statuses/{sha}","languages_url":"https://api.github.com/repos/tomykaira/clockwork/languages","stargazers_url":"https://api.github.com/repos/tomykaira/clockwork/stargazers","contributors_url":"https://api.github.com/repos/tomykaira/clockwork/contributors","subscribers_url":"https://api.github.com/repos/tomykaira/clockwork/subscribers","subscription_url":"https://api.github.com/repos/tomykaira/clockwork/subscription","commits_url":"https://api.github.com/repos/tomykaira/clockwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomykaira/clockwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomykaira/clockwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomykaira/clockwork/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomykaira/clockwork/contents/{+path}","compare_url":"https://api.github.com/repos/tomykaira/clockwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomykaira/clockwork/merges","archive_url":"https://api.github.com/repos/tomykaira/clockwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomykaira/clockwork/downloads","issues_url":"https://api.github.com/repos/tomykaira/clockwork/issues{/number}","pulls_url":"https://api.github.com/repos/tomykaira/clockwork/pulls{/number}","milestones_url":"https://api.github.com/repos/tomykaira/clockwork/milestones{/number}","notifications_url":"https://api.github.com/repos/tomykaira/clockwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomykaira/clockwork/labels{/name}","releases_url":"https://api.github.com/repos/tomykaira/clockwork/releases{/id}","created_at":"2011-10-11T12:59:46Z","updated_at":"2015-01-30T03:18:58Z","pushed_at":"2015-01-28T16:11:48Z","git_url":"git://github.com/tomykaira/clockwork.git","ssh_url":"git@github.com:tomykaira/clockwork.git","clone_url":"https://github.com/tomykaira/clockwork.git","svn_url":"https://github.com/tomykaira/clockwork","homepage":"","size":818,"stargazers_count":1106,"watchers_count":1106,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":4,"forks":73,"open_issues":4,"watchers":1106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomykaira/clockwork/pulls/140"},"html":{"href":"https://github.com/tomykaira/clockwork/pull/140"},"issue":{"href":"https://api.github.com/repos/tomykaira/clockwork/issues/140"},"comments":{"href":"https://api.github.com/repos/tomykaira/clockwork/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/tomykaira/clockwork/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/tomykaira/clockwork/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tomykaira/clockwork/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/tomykaira/clockwork/statuses/85e92fcf05a29ae1aaf0d82bf6a3670c09a11e54"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":108,"deletions":5,"changed_files":5}}