{"action":"opened","number":79,"pull_request":{"url":"https://api.github.com/repos/contiv/netplugin/pulls/79","id":36072849,"html_url":"https://github.com/contiv/netplugin/pull/79","diff_url":"https://github.com/contiv/netplugin/pull/79.diff","patch_url":"https://github.com/contiv/netplugin/pull/79.patch","issue_url":"https://api.github.com/repos/contiv/netplugin/issues/79","number":79,"state":"open","locked":false,"title":"Implement multi-level logging","user":{"login":"erikh","id":18923,"avatar_url":"https://avatars.githubusercontent.com/u/18923?v=3","gravatar_id":"","url":"https://api.github.com/users/erikh","html_url":"https://github.com/erikh","followers_url":"https://api.github.com/users/erikh/followers","following_url":"https://api.github.com/users/erikh/following{/other_user}","gists_url":"https://api.github.com/users/erikh/gists{/gist_id}","starred_url":"https://api.github.com/users/erikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikh/subscriptions","organizations_url":"https://api.github.com/users/erikh/orgs","repos_url":"https://api.github.com/users/erikh/repos","events_url":"https://api.github.com/users/erikh/events{/privacy}","received_events_url":"https://api.github.com/users/erikh/received_events","type":"User","site_admin":false},"body":"This uses logrus's log levels features to implement multi-level logging.\r\n\r\nNote that you cannot currently pick what levels to log; this'll be provided by another patch.\r\n\r\nI tried to follow this convention:\r\n\r\n* `Debugf` for all diagnostic messages\r\n* `Errorf` for all errors or error messages\r\n* `Fatalf` for all errors that cause a program to exit (I noticed there were a few of these that didn't exit; I added those exit calls, might be an issue)\r\n* `Infof` for everything else\r\n\r\nPTAL. Thanks!","created_at":"2015-05-22T22:07:51Z","updated_at":"2015-05-22T22:07:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/contiv/netplugin/pulls/79/commits","review_comments_url":"https://api.github.com/repos/contiv/netplugin/pulls/79/comments","review_comment_url":"https://api.github.com/repos/contiv/netplugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contiv/netplugin/issues/79/comments","statuses_url":"https://api.github.com/repos/contiv/netplugin/statuses/e75a275f4901ae4041a69fdab5b0a59c35176e32","head":{"label":"erikh:loglevels","ref":"loglevels","sha":"e75a275f4901ae4041a69fdab5b0a59c35176e32","user":{"login":"erikh","id":18923,"avatar_url":"https://avatars.githubusercontent.com/u/18923?v=3","gravatar_id":"","url":"https://api.github.com/users/erikh","html_url":"https://github.com/erikh","followers_url":"https://api.github.com/users/erikh/followers","following_url":"https://api.github.com/users/erikh/following{/other_user}","gists_url":"https://api.github.com/users/erikh/gists{/gist_id}","starred_url":"https://api.github.com/users/erikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikh/subscriptions","organizations_url":"https://api.github.com/users/erikh/orgs","repos_url":"https://api.github.com/users/erikh/repos","events_url":"https://api.github.com/users/erikh/events{/privacy}","received_events_url":"https://api.github.com/users/erikh/received_events","type":"User","site_admin":false},"repo":{"id":35390712,"name":"netplugin","full_name":"erikh/netplugin","owner":{"login":"erikh","id":18923,"avatar_url":"https://avatars.githubusercontent.com/u/18923?v=3","gravatar_id":"","url":"https://api.github.com/users/erikh","html_url":"https://github.com/erikh","followers_url":"https://api.github.com/users/erikh/followers","following_url":"https://api.github.com/users/erikh/following{/other_user}","gists_url":"https://api.github.com/users/erikh/gists{/gist_id}","starred_url":"https://api.github.com/users/erikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikh/subscriptions","organizations_url":"https://api.github.com/users/erikh/orgs","repos_url":"https://api.github.com/users/erikh/repos","events_url":"https://api.github.com/users/erikh/events{/privacy}","received_events_url":"https://api.github.com/users/erikh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erikh/netplugin","description":null,"fork":true,"url":"https://api.github.com/repos/erikh/netplugin","forks_url":"https://api.github.com/repos/erikh/netplugin/forks","keys_url":"https://api.github.com/repos/erikh/netplugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erikh/netplugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erikh/netplugin/teams","hooks_url":"https://api.github.com/repos/erikh/netplugin/hooks","issue_events_url":"https://api.github.com/repos/erikh/netplugin/issues/events{/number}","events_url":"https://api.github.com/repos/erikh/netplugin/events","assignees_url":"https://api.github.com/repos/erikh/netplugin/assignees{/user}","branches_url":"https://api.github.com/repos/erikh/netplugin/branches{/branch}","tags_url":"https://api.github.com/repos/erikh/netplugin/tags","blobs_url":"https://api.github.com/repos/erikh/netplugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erikh/netplugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erikh/netplugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/erikh/netplugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erikh/netplugin/statuses/{sha}","languages_url":"https://api.github.com/repos/erikh/netplugin/languages","stargazers_url":"https://api.github.com/repos/erikh/netplugin/stargazers","contributors_url":"https://api.github.com/repos/erikh/netplugin/contributors","subscribers_url":"https://api.github.com/repos/erikh/netplugin/subscribers","subscription_url":"https://api.github.com/repos/erikh/netplugin/subscription","commits_url":"https://api.github.com/repos/erikh/netplugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/erikh/netplugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/erikh/netplugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/erikh/netplugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/erikh/netplugin/contents/{+path}","compare_url":"https://api.github.com/repos/erikh/netplugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erikh/netplugin/merges","archive_url":"https://api.github.com/repos/erikh/netplugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erikh/netplugin/downloads","issues_url":"https://api.github.com/repos/erikh/netplugin/issues{/number}","pulls_url":"https://api.github.com/repos/erikh/netplugin/pulls{/number}","milestones_url":"https://api.github.com/repos/erikh/netplugin/milestones{/number}","notifications_url":"https://api.github.com/repos/erikh/netplugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erikh/netplugin/labels{/name}","releases_url":"https://api.github.com/repos/erikh/netplugin/releases{/id}","created_at":"2015-05-10T22:36:26Z","updated_at":"2015-05-10T22:36:26Z","pushed_at":"2015-05-22T22:05:34Z","git_url":"git://github.com/erikh/netplugin.git","ssh_url":"git@github.com:erikh/netplugin.git","clone_url":"https://github.com/erikh/netplugin.git","svn_url":"https://github.com/erikh/netplugin","homepage":null,"size":557,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"contiv:master","ref":"master","sha":"77f01ad65be7d35198e767b1744d0e220977000a","user":{"login":"contiv","id":10272443,"avatar_url":"https://avatars.githubusercontent.com/u/10272443?v=3","gravatar_id":"","url":"https://api.github.com/users/contiv","html_url":"https://github.com/contiv","followers_url":"https://api.github.com/users/contiv/followers","following_url":"https://api.github.com/users/contiv/following{/other_user}","gists_url":"https://api.github.com/users/contiv/gists{/gist_id}","starred_url":"https://api.github.com/users/contiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contiv/subscriptions","organizations_url":"https://api.github.com/users/contiv/orgs","repos_url":"https://api.github.com/users/contiv/repos","events_url":"https://api.github.com/users/contiv/events{/privacy}","received_events_url":"https://api.github.com/users/contiv/received_events","type":"User","site_admin":false},"repo":{"id":28353322,"name":"netplugin","full_name":"contiv/netplugin","owner":{"login":"contiv","id":10272443,"avatar_url":"https://avatars.githubusercontent.com/u/10272443?v=3","gravatar_id":"","url":"https://api.github.com/users/contiv","html_url":"https://github.com/contiv","followers_url":"https://api.github.com/users/contiv/followers","following_url":"https://api.github.com/users/contiv/following{/other_user}","gists_url":"https://api.github.com/users/contiv/gists{/gist_id}","starred_url":"https://api.github.com/users/contiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contiv/subscriptions","organizations_url":"https://api.github.com/users/contiv/orgs","repos_url":"https://api.github.com/users/contiv/repos","events_url":"https://api.github.com/users/contiv/events{/privacy}","received_events_url":"https://api.github.com/users/contiv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/contiv/netplugin","description":null,"fork":false,"url":"https://api.github.com/repos/contiv/netplugin","forks_url":"https://api.github.com/repos/contiv/netplugin/forks","keys_url":"https://api.github.com/repos/contiv/netplugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contiv/netplugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contiv/netplugin/teams","hooks_url":"https://api.github.com/repos/contiv/netplugin/hooks","issue_events_url":"https://api.github.com/repos/contiv/netplugin/issues/events{/number}","events_url":"https://api.github.com/repos/contiv/netplugin/events","assignees_url":"https://api.github.com/repos/contiv/netplugin/assignees{/user}","branches_url":"https://api.github.com/repos/contiv/netplugin/branches{/branch}","tags_url":"https://api.github.com/repos/contiv/netplugin/tags","blobs_url":"https://api.github.com/repos/contiv/netplugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contiv/netplugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contiv/netplugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/contiv/netplugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contiv/netplugin/statuses/{sha}","languages_url":"https://api.github.com/repos/contiv/netplugin/languages","stargazers_url":"https://api.github.com/repos/contiv/netplugin/stargazers","contributors_url":"https://api.github.com/repos/contiv/netplugin/contributors","subscribers_url":"https://api.github.com/repos/contiv/netplugin/subscribers","subscription_url":"https://api.github.com/repos/contiv/netplugin/subscription","commits_url":"https://api.github.com/repos/contiv/netplugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/contiv/netplugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/contiv/netplugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/contiv/netplugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/contiv/netplugin/contents/{+path}","compare_url":"https://api.github.com/repos/contiv/netplugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contiv/netplugin/merges","archive_url":"https://api.github.com/repos/contiv/netplugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contiv/netplugin/downloads","issues_url":"https://api.github.com/repos/contiv/netplugin/issues{/number}","pulls_url":"https://api.github.com/repos/contiv/netplugin/pulls{/number}","milestones_url":"https://api.github.com/repos/contiv/netplugin/milestones{/number}","notifications_url":"https://api.github.com/repos/contiv/netplugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contiv/netplugin/labels{/name}","releases_url":"https://api.github.com/repos/contiv/netplugin/releases{/id}","created_at":"2014-12-22T18:45:21Z","updated_at":"2015-05-11T08:19:57Z","pushed_at":"2015-05-22T21:21:44Z","git_url":"git://github.com/contiv/netplugin.git","ssh_url":"git@github.com:contiv/netplugin.git","clone_url":"https://github.com/contiv/netplugin.git","svn_url":"https://github.com/contiv/netplugin","homepage":null,"size":2261,"stargazers_count":15,"watchers_count":15,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":12,"forks":10,"open_issues":12,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contiv/netplugin/pulls/79"},"html":{"href":"https://github.com/contiv/netplugin/pull/79"},"issue":{"href":"https://api.github.com/repos/contiv/netplugin/issues/79"},"comments":{"href":"https://api.github.com/repos/contiv/netplugin/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/contiv/netplugin/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/contiv/netplugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contiv/netplugin/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/contiv/netplugin/statuses/e75a275f4901ae4041a69fdab5b0a59c35176e32"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":237,"deletions":221,"changed_files":21}}