{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/vinkla/pusher/pulls/15","id":75743237,"html_url":"https://github.com/vinkla/pusher/pull/15","diff_url":"https://github.com/vinkla/pusher/pull/15.diff","patch_url":"https://github.com/vinkla/pusher/pull/15.patch","issue_url":"https://api.github.com/repos/vinkla/pusher/issues/15","number":15,"state":"closed","locked":false,"title":"create PusherLogAdapter to forward Pusher log calls to Laravel logger","user":{"login":"michalcarson","id":5287400,"avatar_url":"https://avatars.githubusercontent.com/u/5287400?v=3","gravatar_id":"","url":"https://api.github.com/users/michalcarson","html_url":"https://github.com/michalcarson","followers_url":"https://api.github.com/users/michalcarson/followers","following_url":"https://api.github.com/users/michalcarson/following{/other_user}","gists_url":"https://api.github.com/users/michalcarson/gists{/gist_id}","starred_url":"https://api.github.com/users/michalcarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalcarson/subscriptions","organizations_url":"https://api.github.com/users/michalcarson/orgs","repos_url":"https://api.github.com/users/michalcarson/repos","events_url":"https://api.github.com/users/michalcarson/events{/privacy}","received_events_url":"https://api.github.com/users/michalcarson/received_events","type":"User","site_admin":false},"body":"The official Pusher package contains calls to a \"log\" method if a logger is provided. In this PR, I have provided a simple adapter class that will forward Pusher's log calls to the Laravel logger.\r\n\r\nActivation of the log adapter is controlled by a true/false setting in config/pusher.php.\r\n\r\nI've added two tests. One covers invocation of the Factory with log enabled. The other tests the single function of the log adapter (\"log\" method), assuring that it forwards the message to a mock logger.","created_at":"2016-06-30T00:24:29Z","updated_at":"2016-06-30T20:44:50Z","closed_at":"2016-06-30T20:44:50Z","merged_at":null,"merge_commit_sha":"e5b166827da4b5441bebaeb02b8443852e4b1df0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vinkla/pusher/pulls/15/commits","review_comments_url":"https://api.github.com/repos/vinkla/pusher/pulls/15/comments","review_comment_url":"https://api.github.com/repos/vinkla/pusher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vinkla/pusher/issues/15/comments","statuses_url":"https://api.github.com/repos/vinkla/pusher/statuses/e5cd4415df9caac330c26c0a3f18773e00325ffc","head":{"label":"michalcarson:PusherLogAdapter","ref":"PusherLogAdapter","sha":"e5cd4415df9caac330c26c0a3f18773e00325ffc","user":{"login":"michalcarson","id":5287400,"avatar_url":"https://avatars.githubusercontent.com/u/5287400?v=3","gravatar_id":"","url":"https://api.github.com/users/michalcarson","html_url":"https://github.com/michalcarson","followers_url":"https://api.github.com/users/michalcarson/followers","following_url":"https://api.github.com/users/michalcarson/following{/other_user}","gists_url":"https://api.github.com/users/michalcarson/gists{/gist_id}","starred_url":"https://api.github.com/users/michalcarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalcarson/subscriptions","organizations_url":"https://api.github.com/users/michalcarson/orgs","repos_url":"https://api.github.com/users/michalcarson/repos","events_url":"https://api.github.com/users/michalcarson/events{/privacy}","received_events_url":"https://api.github.com/users/michalcarson/received_events","type":"User","site_admin":false},"repo":{"id":62263911,"name":"pusher","full_name":"michalcarson/pusher","owner":{"login":"michalcarson","id":5287400,"avatar_url":"https://avatars.githubusercontent.com/u/5287400?v=3","gravatar_id":"","url":"https://api.github.com/users/michalcarson","html_url":"https://github.com/michalcarson","followers_url":"https://api.github.com/users/michalcarson/followers","following_url":"https://api.github.com/users/michalcarson/following{/other_user}","gists_url":"https://api.github.com/users/michalcarson/gists{/gist_id}","starred_url":"https://api.github.com/users/michalcarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalcarson/subscriptions","organizations_url":"https://api.github.com/users/michalcarson/orgs","repos_url":"https://api.github.com/users/michalcarson/repos","events_url":"https://api.github.com/users/michalcarson/events{/privacy}","received_events_url":"https://api.github.com/users/michalcarson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michalcarson/pusher","description":"A Pusher bridge for Laravel","fork":true,"url":"https://api.github.com/repos/michalcarson/pusher","forks_url":"https://api.github.com/repos/michalcarson/pusher/forks","keys_url":"https://api.github.com/repos/michalcarson/pusher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michalcarson/pusher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michalcarson/pusher/teams","hooks_url":"https://api.github.com/repos/michalcarson/pusher/hooks","issue_events_url":"https://api.github.com/repos/michalcarson/pusher/issues/events{/number}","events_url":"https://api.github.com/repos/michalcarson/pusher/events","assignees_url":"https://api.github.com/repos/michalcarson/pusher/assignees{/user}","branches_url":"https://api.github.com/repos/michalcarson/pusher/branches{/branch}","tags_url":"https://api.github.com/repos/michalcarson/pusher/tags","blobs_url":"https://api.github.com/repos/michalcarson/pusher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michalcarson/pusher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michalcarson/pusher/git/refs{/sha}","trees_url":"https://api.github.com/repos/michalcarson/pusher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michalcarson/pusher/statuses/{sha}","languages_url":"https://api.github.com/repos/michalcarson/pusher/languages","stargazers_url":"https://api.github.com/repos/michalcarson/pusher/stargazers","contributors_url":"https://api.github.com/repos/michalcarson/pusher/contributors","subscribers_url":"https://api.github.com/repos/michalcarson/pusher/subscribers","subscription_url":"https://api.github.com/repos/michalcarson/pusher/subscription","commits_url":"https://api.github.com/repos/michalcarson/pusher/commits{/sha}","git_commits_url":"https://api.github.com/repos/michalcarson/pusher/git/commits{/sha}","comments_url":"https://api.github.com/repos/michalcarson/pusher/comments{/number}","issue_comment_url":"https://api.github.com/repos/michalcarson/pusher/issues/comments{/number}","contents_url":"https://api.github.com/repos/michalcarson/pusher/contents/{+path}","compare_url":"https://api.github.com/repos/michalcarson/pusher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michalcarson/pusher/merges","archive_url":"https://api.github.com/repos/michalcarson/pusher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michalcarson/pusher/downloads","issues_url":"https://api.github.com/repos/michalcarson/pusher/issues{/number}","pulls_url":"https://api.github.com/repos/michalcarson/pusher/pulls{/number}","milestones_url":"https://api.github.com/repos/michalcarson/pusher/milestones{/number}","notifications_url":"https://api.github.com/repos/michalcarson/pusher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michalcarson/pusher/labels{/name}","releases_url":"https://api.github.com/repos/michalcarson/pusher/releases{/id}","deployments_url":"https://api.github.com/repos/michalcarson/pusher/deployments","created_at":"2016-06-29T23:15:32Z","updated_at":"2016-06-29T23:15:33Z","pushed_at":"2016-06-30T01:39:55Z","git_url":"git://github.com/michalcarson/pusher.git","ssh_url":"git@github.com:michalcarson/pusher.git","clone_url":"https://github.com/michalcarson/pusher.git","svn_url":"https://github.com/michalcarson/pusher","homepage":"https://vinkla.com/","size":65,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"vinkla:master","ref":"master","sha":"f847defc43b1444434d8b6ae81c090066a65a837","user":{"login":"vinkla","id":499192,"avatar_url":"https://avatars.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"repo":{"id":30508702,"name":"pusher","full_name":"vinkla/pusher","owner":{"login":"vinkla","id":499192,"avatar_url":"https://avatars.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinkla/pusher","description":"A Pusher bridge for Laravel","fork":false,"url":"https://api.github.com/repos/vinkla/pusher","forks_url":"https://api.github.com/repos/vinkla/pusher/forks","keys_url":"https://api.github.com/repos/vinkla/pusher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinkla/pusher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinkla/pusher/teams","hooks_url":"https://api.github.com/repos/vinkla/pusher/hooks","issue_events_url":"https://api.github.com/repos/vinkla/pusher/issues/events{/number}","events_url":"https://api.github.com/repos/vinkla/pusher/events","assignees_url":"https://api.github.com/repos/vinkla/pusher/assignees{/user}","branches_url":"https://api.github.com/repos/vinkla/pusher/branches{/branch}","tags_url":"https://api.github.com/repos/vinkla/pusher/tags","blobs_url":"https://api.github.com/repos/vinkla/pusher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinkla/pusher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinkla/pusher/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinkla/pusher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinkla/pusher/statuses/{sha}","languages_url":"https://api.github.com/repos/vinkla/pusher/languages","stargazers_url":"https://api.github.com/repos/vinkla/pusher/stargazers","contributors_url":"https://api.github.com/repos/vinkla/pusher/contributors","subscribers_url":"https://api.github.com/repos/vinkla/pusher/subscribers","subscription_url":"https://api.github.com/repos/vinkla/pusher/subscription","commits_url":"https://api.github.com/repos/vinkla/pusher/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinkla/pusher/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinkla/pusher/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinkla/pusher/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinkla/pusher/contents/{+path}","compare_url":"https://api.github.com/repos/vinkla/pusher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinkla/pusher/merges","archive_url":"https://api.github.com/repos/vinkla/pusher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinkla/pusher/downloads","issues_url":"https://api.github.com/repos/vinkla/pusher/issues{/number}","pulls_url":"https://api.github.com/repos/vinkla/pusher/pulls{/number}","milestones_url":"https://api.github.com/repos/vinkla/pusher/milestones{/number}","notifications_url":"https://api.github.com/repos/vinkla/pusher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinkla/pusher/labels{/name}","releases_url":"https://api.github.com/repos/vinkla/pusher/releases{/id}","deployments_url":"https://api.github.com/repos/vinkla/pusher/deployments","created_at":"2015-02-08T22:41:00Z","updated_at":"2016-06-30T07:18:11Z","pushed_at":"2016-06-30T01:39:58Z","git_url":"git://github.com/vinkla/pusher.git","ssh_url":"git@github.com:vinkla/pusher.git","clone_url":"https://github.com/vinkla/pusher.git","svn_url":"https://github.com/vinkla/pusher","homepage":"https://vinkla.com/","size":61,"stargazers_count":177,"watchers_count":177,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":2,"forks":23,"open_issues":2,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vinkla/pusher/pulls/15"},"html":{"href":"https://github.com/vinkla/pusher/pull/15"},"issue":{"href":"https://api.github.com/repos/vinkla/pusher/issues/15"},"comments":{"href":"https://api.github.com/repos/vinkla/pusher/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/vinkla/pusher/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/vinkla/pusher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vinkla/pusher/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/vinkla/pusher/statuses/e5cd4415df9caac330c26c0a3f18773e00325ffc"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":0,"commits":3,"additions":114,"deletions":2,"changed_files":5}}
{"actor":{"display_login":"michalcarson"}}