{"action":"closed","number":997,"pull_request":{"url":"https://api.github.com/repos/Seldaek/monolog/pulls/997","id":123307107,"node_id":"MDExOlB1bGxSZXF1ZXN0MTIzMzA3MTA3","html_url":"https://github.com/Seldaek/monolog/pull/997","diff_url":"https://github.com/Seldaek/monolog/pull/997.diff","patch_url":"https://github.com/Seldaek/monolog/pull/997.patch","issue_url":"https://api.github.com/repos/Seldaek/monolog/issues/997","number":997,"state":"closed","locked":false,"title":"Added a new ResettableInterface and implemented it where possible.","user":{"login":"lyrixx","id":408368,"node_id":"MDQ6VXNlcjQwODM2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/408368?v=4","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"body":"Added a new ResetableInterface and implemented it where possible.\r\n\r\nWhen one use Monolog in a long process like an AMQP worker with a\r\n`FingersCrossedHandler` or `BufferHandler` there is a drawback: as soon as there\r\nis an AMQP message that generate a log >= error (for example), all next AMQP\r\nmessages will output logs, even if theses messages don't generate log where\r\nlevel >= error.\r\n\r\nIn the same context there is a drawback for processor that add an UUID to the\r\nlogs. The UUID should change for each AMQP messages.\r\n\r\n---\r\n\r\nThis patch address this issue with a new interface: `ResettableInterface` interface.\r\nSide note: `reset()`, `flush()`, `clear()`,  are already used in Monolog. So\r\nbasically, one can use the `reset()` on the `Logger` and on some\r\n`Handler`s / `Processor`s.\r\n\r\nIt's especially useful for\r\n\r\n* the `FingersCrossedHandler`: it `close()` the buffer, then it `clear()` the buffer.\r\n* the `BufferHandler`: it `flush()` the buf","created_at":"2017-05-31T15:51:03Z","updated_at":"2018-11-04T16:43:13Z","closed_at":"2018-11-04T16:43:13Z","merged_at":"2018-11-04T16:43:13Z","merge_commit_sha":"a03084c6e7c8c7ef98218568c123a3e1f0996394","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":87833791,"node_id":"MDU6TGFiZWw4NzgzMzc5MQ==","url":"https://api.github.com/repos/Seldaek/monolog/labels/Feature","name":"Feature","color":"009800","default":false}],"milestone":{"url":"https://api.github.com/repos/Seldaek/monolog/milestones/5","html_url":"https://github.com/Seldaek/monolog/milestone/5","labels_url":"https://api.github.com/repos/Seldaek/monolog/milestones/5/labels","id":1854876,"node_id":"MDk6TWlsZXN0b25lMTg1NDg3Ng==","number":5,"title":"1.x","description":"","creator":{"login":"Seldaek","id":183678,"node_id":"MDQ6VXNlcjE4MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/183678?v=4","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":21,"state":"open","created_at":"2016-06-29T11:29:05Z","updated_at":"2018-11-04T16:43:13Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Seldaek/monolog/pulls/997/commits","review_comments_url":"https://api.github.com/repos/Seldaek/monolog/pulls/997/comments","review_comment_url":"https://api.github.com/repos/Seldaek/monolog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Seldaek/monolog/issues/997/comments","statuses_url":"https://api.github.com/repos/Seldaek/monolog/statuses/531d05a802ad48bdba0310191e5cc51014273545","head":{"label":"lyrixx:resetable","ref":"resetable","sha":"531d05a802ad48bdba0310191e5cc51014273545","user":{"login":"lyrixx","id":408368,"node_id":"MDQ6VXNlcjQwODM2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/408368?v=4","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"repo":{"id":7398038,"node_id":"MDEwOlJlcG9zaXRvcnk3Mzk4MDM4","name":"monolog","full_name":"lyrixx/monolog","private":false,"owner":{"login":"lyrixx","id":408368,"node_id":"MDQ6VXNlcjQwODM2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/408368?v=4","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lyrixx/monolog","description":"Logging for PHP 5.3","fork":true,"url":"https://api.github.com/repos/lyrixx/monolog","forks_url":"https://api.github.com/repos/lyrixx/monolog/forks","keys_url":"https://api.github.com/repos/lyrixx/monolog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lyrixx/monolog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lyrixx/monolog/teams","hooks_url":"https://api.github.com/repos/lyrixx/monolog/hooks","issue_events_url":"https://api.github.com/repos/lyrixx/monolog/issues/events{/number}","events_url":"https://api.github.com/repos/lyrixx/monolog/events","assignees_url":"https://api.github.com/repos/lyrixx/monolog/assignees{/user}","branches_url":"https://api.github.com/repos/lyrixx/monolog/branches{/branch}","tags_url":"https://api.github.com/repos/lyrixx/monolog/tags","blobs_url":"https://api.github.com/repos/lyrixx/monolog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lyrixx/monolog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lyrixx/monolog/git/refs{/sha}","trees_url":"https://api.github.com/repos/lyrixx/monolog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lyrixx/monolog/statuses/{sha}","languages_url":"https://api.github.com/repos/lyrixx/monolog/languages","stargazers_url":"https://api.github.com/repos/lyrixx/monolog/stargazers","contributors_url":"https://api.github.com/repos/lyrixx/monolog/contributors","subscribers_url":"https://api.github.com/repos/lyrixx/monolog/subscribers","subscription_url":"https://api.github.com/repos/lyrixx/monolog/subscription","commits_url":"https://api.github.com/repos/lyrixx/monolog/commits{/sha}","git_commits_url":"https://api.github.com/repos/lyrixx/monolog/git/commits{/sha}","comments_url":"https://api.github.com/repos/lyrixx/monolog/comments{/number}","issue_comment_url":"https://api.github.com/repos/lyrixx/monolog/issues/comments{/number}","contents_url":"https://api.github.com/repos/lyrixx/monolog/contents/{+path}","compare_url":"https://api.github.com/repos/lyrixx/monolog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lyrixx/monolog/merges","archive_url":"https://api.github.com/repos/lyrixx/monolog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lyrixx/monolog/downloads","issues_url":"https://api.github.com/repos/lyrixx/monolog/issues{/number}","pulls_url":"https://api.github.com/repos/lyrixx/monolog/pulls{/number}","milestones_url":"https://api.github.com/repos/lyrixx/monolog/milestones{/number}","notifications_url":"https://api.github.com/repos/lyrixx/monolog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lyrixx/monolog/labels{/name}","releases_url":"https://api.github.com/repos/lyrixx/monolog/releases{/id}","deployments_url":"https://api.github.com/repos/lyrixx/monolog/deployments","created_at":"2013-01-01T19:01:01Z","updated_at":"2018-07-06T08:31:53Z","pushed_at":"2018-11-04T16:43:02Z","git_url":"git://github.com/lyrixx/monolog.git","ssh_url":"git@github.com:lyrixx/monolog.git","clone_url":"https://github.com/lyrixx/monolog.git","svn_url":"https://github.com/lyrixx/monolog","homepage":"","size":2378,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Seldaek:1.x","ref":"1.x","sha":"d64fd101b72b5a051e5167ccaa7801f937354a80","user":{"login":"Seldaek","id":183678,"node_id":"MDQ6VXNlcjE4MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/183678?v=4","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"repo":{"id":1376664,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NjY0","name":"monolog","full_name":"Seldaek/monolog","private":false,"owner":{"login":"Seldaek","id":183678,"node_id":"MDQ6VXNlcjE4MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/183678?v=4","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Seldaek/monolog","description":"Sends your logs to files, sockets, inboxes, databases and various web services","fork":false,"url":"https://api.github.com/repos/Seldaek/monolog","forks_url":"https://api.github.com/repos/Seldaek/monolog/forks","keys_url":"https://api.github.com/repos/Seldaek/monolog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Seldaek/monolog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Seldaek/monolog/teams","hooks_url":"https://api.github.com/repos/Seldaek/monolog/hooks","issue_events_url":"https://api.github.com/repos/Seldaek/monolog/issues/events{/number}","events_url":"https://api.github.com/repos/Seldaek/monolog/events","assignees_url":"https://api.github.com/repos/Seldaek/monolog/assignees{/user}","branches_url":"https://api.github.com/repos/Seldaek/monolog/branches{/branch}","tags_url":"https://api.github.com/repos/Seldaek/monolog/tags","blobs_url":"https://api.github.com/repos/Seldaek/monolog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Seldaek/monolog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Seldaek/monolog/git/refs{/sha}","trees_url":"https://api.github.com/repos/Seldaek/monolog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Seldaek/monolog/statuses/{sha}","languages_url":"https://api.github.com/repos/Seldaek/monolog/languages","stargazers_url":"https://api.github.com/repos/Seldaek/monolog/stargazers","contributors_url":"https://api.github.com/repos/Seldaek/monolog/contributors","subscribers_url":"https://api.github.com/repos/Seldaek/monolog/subscribers","subscription_url":"https://api.github.com/repos/Seldaek/monolog/subscription","commits_url":"https://api.github.com/repos/Seldaek/monolog/commits{/sha}","git_commits_url":"https://api.github.com/repos/Seldaek/monolog/git/commits{/sha}","comments_url":"https://api.github.com/repos/Seldaek/monolog/comments{/number}","issue_comment_url":"https://api.github.com/repos/Seldaek/monolog/issues/comments{/number}","contents_url":"https://api.github.com/repos/Seldaek/monolog/contents/{+path}","compare_url":"https://api.github.com/repos/Seldaek/monolog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Seldaek/monolog/merges","archive_url":"https://api.github.com/repos/Seldaek/monolog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Seldaek/monolog/downloads","issues_url":"https://api.github.com/repos/Seldaek/monolog/issues{/number}","pulls_url":"https://api.github.com/repos/Seldaek/monolog/pulls{/number}","milestones_url":"https://api.github.com/repos/Seldaek/monolog/milestones{/number}","notifications_url":"https://api.github.com/repos/Seldaek/monolog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Seldaek/monolog/labels{/name}","releases_url":"https://api.github.com/repos/Seldaek/monolog/releases{/id}","deployments_url":"https://api.github.com/repos/Seldaek/monolog/deployments","created_at":"2011-02-17T02:07:15Z","updated_at":"2018-11-04T16:18:23Z","pushed_at":"2018-11-04T16:43:13Z","git_url":"git://github.com/Seldaek/monolog.git","ssh_url":"git@github.com:Seldaek/monolog.git","clone_url":"https://github.com/Seldaek/monolog.git","svn_url":"https://github.com/Seldaek/monolog","homepage":"https://seldaek.github.io/monolog/","size":2439,"stargazers_count":12327,"watchers_count":12327,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1441,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1441,"open_issues":33,"watchers":12327,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Seldaek/monolog/pulls/997"},"html":{"href":"https://github.com/Seldaek/monolog/pull/997"},"issue":{"href":"https://api.github.com/repos/Seldaek/monolog/issues/997"},"comments":{"href":"https://api.github.com/repos/Seldaek/monolog/issues/997/comments"},"review_comments":{"href":"https://api.github.com/repos/Seldaek/monolog/pulls/997/comments"},"review_comment":{"href":"https://api.github.com/repos/Seldaek/monolog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Seldaek/monolog/pulls/997/commits"},"statuses":{"href":"https://api.github.com/repos/Seldaek/monolog/statuses/531d05a802ad48bdba0310191e5cc51014273545"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Seldaek","id":183678,"node_id":"MDQ6VXNlcjE4MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/183678?v=4","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"comments":20,"review_comments":13,"maintainer_can_modify":false,"commits":2,"additions":200,"deletions":15,"changed_files":16}}
{"actor":{"display_login":"Seldaek"}}