{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/opentable/otj-logging/pulls/5","id":30011206,"html_url":"https://github.com/opentable/otj-logging/pull/5","diff_url":"https://github.com/opentable/otj-logging/pull/5.diff","patch_url":"https://github.com/opentable/otj-logging/pull/5.patch","issue_url":"https://api.github.com/repos/opentable/otj-logging/issues/5","number":5,"state":"open","locked":false,"title":"avoid the underlying JSON factory closing a file's output stream","user":{"login":"space-pope","id":5109003,"avatar_url":"https://avatars.githubusercontent.com/u/5109003?v=3","gravatar_id":"","url":"https://api.github.com/users/space-pope","html_url":"https://github.com/space-pope","followers_url":"https://api.github.com/users/space-pope/followers","following_url":"https://api.github.com/users/space-pope/following{/other_user}","gists_url":"https://api.github.com/users/space-pope/gists{/gist_id}","starred_url":"https://api.github.com/users/space-pope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/space-pope/subscriptions","organizations_url":"https://api.github.com/users/space-pope/orgs","repos_url":"https://api.github.com/users/space-pope/repos","events_url":"https://api.github.com/users/space-pope/events{/privacy}","received_events_url":"https://api.github.com/users/space-pope/received_events","type":"User","site_admin":false},"body":"I was having trouble using the JsonLogEncoder with a FileAppender; only one log message was being written per run of my program. After some digging, I found out that writeValue() can implicitly close the output stream. Using the mapper's mapping capabilities and letting the output stream handle the writing fixed the issue for me (and I didn't notice it creating any new problems with a ConsoleAppender).","created_at":"2015-02-25T18:15:04Z","updated_at":"2015-02-25T18:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc5c56c4a01fd468c7b41f62c27eccc89f89480f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opentable/otj-logging/pulls/5/commits","review_comments_url":"https://api.github.com/repos/opentable/otj-logging/pulls/5/comments","review_comment_url":"https://api.github.com/repos/opentable/otj-logging/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentable/otj-logging/issues/5/comments","statuses_url":"https://api.github.com/repos/opentable/otj-logging/statuses/e5d79ec4427bfd092f216f4a3dd732f07e4dd62f","head":{"label":"space-pope:master","ref":"master","sha":"e5d79ec4427bfd092f216f4a3dd732f07e4dd62f","user":{"login":"space-pope","id":5109003,"avatar_url":"https://avatars.githubusercontent.com/u/5109003?v=3","gravatar_id":"","url":"https://api.github.com/users/space-pope","html_url":"https://github.com/space-pope","followers_url":"https://api.github.com/users/space-pope/followers","following_url":"https://api.github.com/users/space-pope/following{/other_user}","gists_url":"https://api.github.com/users/space-pope/gists{/gist_id}","starred_url":"https://api.github.com/users/space-pope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/space-pope/subscriptions","organizations_url":"https://api.github.com/users/space-pope/orgs","repos_url":"https://api.github.com/users/space-pope/repos","events_url":"https://api.github.com/users/space-pope/events{/privacy}","received_events_url":"https://api.github.com/users/space-pope/received_events","type":"User","site_admin":false},"repo":{"id":31080514,"name":"otj-logging","full_name":"space-pope/otj-logging","owner":{"login":"space-pope","id":5109003,"avatar_url":"https://avatars.githubusercontent.com/u/5109003?v=3","gravatar_id":"","url":"https://api.github.com/users/space-pope","html_url":"https://github.com/space-pope","followers_url":"https://api.github.com/users/space-pope/followers","following_url":"https://api.github.com/users/space-pope/following{/other_user}","gists_url":"https://api.github.com/users/space-pope/gists{/gist_id}","starred_url":"https://api.github.com/users/space-pope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/space-pope/subscriptions","organizations_url":"https://api.github.com/users/space-pope/orgs","repos_url":"https://api.github.com/users/space-pope/repos","events_url":"https://api.github.com/users/space-pope/events{/privacy}","received_events_url":"https://api.github.com/users/space-pope/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/space-pope/otj-logging","description":"OpenTable Java logging configuration component","fork":true,"url":"https://api.github.com/repos/space-pope/otj-logging","forks_url":"https://api.github.com/repos/space-pope/otj-logging/forks","keys_url":"https://api.github.com/repos/space-pope/otj-logging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/space-pope/otj-logging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/space-pope/otj-logging/teams","hooks_url":"https://api.github.com/repos/space-pope/otj-logging/hooks","issue_events_url":"https://api.github.com/repos/space-pope/otj-logging/issues/events{/number}","events_url":"https://api.github.com/repos/space-pope/otj-logging/events","assignees_url":"https://api.github.com/repos/space-pope/otj-logging/assignees{/user}","branches_url":"https://api.github.com/repos/space-pope/otj-logging/branches{/branch}","tags_url":"https://api.github.com/repos/space-pope/otj-logging/tags","blobs_url":"https://api.github.com/repos/space-pope/otj-logging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/space-pope/otj-logging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/space-pope/otj-logging/git/refs{/sha}","trees_url":"https://api.github.com/repos/space-pope/otj-logging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/space-pope/otj-logging/statuses/{sha}","languages_url":"https://api.github.com/repos/space-pope/otj-logging/languages","stargazers_url":"https://api.github.com/repos/space-pope/otj-logging/stargazers","contributors_url":"https://api.github.com/repos/space-pope/otj-logging/contributors","subscribers_url":"https://api.github.com/repos/space-pope/otj-logging/subscribers","subscription_url":"https://api.github.com/repos/space-pope/otj-logging/subscription","commits_url":"https://api.github.com/repos/space-pope/otj-logging/commits{/sha}","git_commits_url":"https://api.github.com/repos/space-pope/otj-logging/git/commits{/sha}","comments_url":"https://api.github.com/repos/space-pope/otj-logging/comments{/number}","issue_comment_url":"https://api.github.com/repos/space-pope/otj-logging/issues/comments{/number}","contents_url":"https://api.github.com/repos/space-pope/otj-logging/contents/{+path}","compare_url":"https://api.github.com/repos/space-pope/otj-logging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/space-pope/otj-logging/merges","archive_url":"https://api.github.com/repos/space-pope/otj-logging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/space-pope/otj-logging/downloads","issues_url":"https://api.github.com/repos/space-pope/otj-logging/issues{/number}","pulls_url":"https://api.github.com/repos/space-pope/otj-logging/pulls{/number}","milestones_url":"https://api.github.com/repos/space-pope/otj-logging/milestones{/number}","notifications_url":"https://api.github.com/repos/space-pope/otj-logging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/space-pope/otj-logging/labels{/name}","releases_url":"https://api.github.com/repos/space-pope/otj-logging/releases{/id}","created_at":"2015-02-20T19:17:53Z","updated_at":"2015-02-25T18:12:06Z","pushed_at":"2015-02-25T18:12:06Z","git_url":"git://github.com/space-pope/otj-logging.git","ssh_url":"git@github.com:space-pope/otj-logging.git","clone_url":"https://github.com/space-pope/otj-logging.git","svn_url":"https://github.com/space-pope/otj-logging","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"opentable:master","ref":"master","sha":"28e0c03ba496a8ca53e561676f642a3befdcf425","user":{"login":"opentable","id":2653541,"avatar_url":"https://avatars.githubusercontent.com/u/2653541?v=3","gravatar_id":"","url":"https://api.github.com/users/opentable","html_url":"https://github.com/opentable","followers_url":"https://api.github.com/users/opentable/followers","following_url":"https://api.github.com/users/opentable/following{/other_user}","gists_url":"https://api.github.com/users/opentable/gists{/gist_id}","starred_url":"https://api.github.com/users/opentable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentable/subscriptions","organizations_url":"https://api.github.com/users/opentable/orgs","repos_url":"https://api.github.com/users/opentable/repos","events_url":"https://api.github.com/users/opentable/events{/privacy}","received_events_url":"https://api.github.com/users/opentable/received_events","type":"Organization","site_admin":false},"repo":{"id":17919790,"name":"otj-logging","full_name":"opentable/otj-logging","owner":{"login":"opentable","id":2653541,"avatar_url":"https://avatars.githubusercontent.com/u/2653541?v=3","gravatar_id":"","url":"https://api.github.com/users/opentable","html_url":"https://github.com/opentable","followers_url":"https://api.github.com/users/opentable/followers","following_url":"https://api.github.com/users/opentable/following{/other_user}","gists_url":"https://api.github.com/users/opentable/gists{/gist_id}","starred_url":"https://api.github.com/users/opentable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentable/subscriptions","organizations_url":"https://api.github.com/users/opentable/orgs","repos_url":"https://api.github.com/users/opentable/repos","events_url":"https://api.github.com/users/opentable/events{/privacy}","received_events_url":"https://api.github.com/users/opentable/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentable/otj-logging","description":"OpenTable Java logging configuration component","fork":false,"url":"https://api.github.com/repos/opentable/otj-logging","forks_url":"https://api.github.com/repos/opentable/otj-logging/forks","keys_url":"https://api.github.com/repos/opentable/otj-logging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentable/otj-logging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentable/otj-logging/teams","hooks_url":"https://api.github.com/repos/opentable/otj-logging/hooks","issue_events_url":"https://api.github.com/repos/opentable/otj-logging/issues/events{/number}","events_url":"https://api.github.com/repos/opentable/otj-logging/events","assignees_url":"https://api.github.com/repos/opentable/otj-logging/assignees{/user}","branches_url":"https://api.github.com/repos/opentable/otj-logging/branches{/branch}","tags_url":"https://api.github.com/repos/opentable/otj-logging/tags","blobs_url":"https://api.github.com/repos/opentable/otj-logging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentable/otj-logging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentable/otj-logging/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentable/otj-logging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentable/otj-logging/statuses/{sha}","languages_url":"https://api.github.com/repos/opentable/otj-logging/languages","stargazers_url":"https://api.github.com/repos/opentable/otj-logging/stargazers","contributors_url":"https://api.github.com/repos/opentable/otj-logging/contributors","subscribers_url":"https://api.github.com/repos/opentable/otj-logging/subscribers","subscription_url":"https://api.github.com/repos/opentable/otj-logging/subscription","commits_url":"https://api.github.com/repos/opentable/otj-logging/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentable/otj-logging/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentable/otj-logging/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentable/otj-logging/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentable/otj-logging/contents/{+path}","compare_url":"https://api.github.com/repos/opentable/otj-logging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentable/otj-logging/merges","archive_url":"https://api.github.com/repos/opentable/otj-logging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentable/otj-logging/downloads","issues_url":"https://api.github.com/repos/opentable/otj-logging/issues{/number}","pulls_url":"https://api.github.com/repos/opentable/otj-logging/pulls{/number}","milestones_url":"https://api.github.com/repos/opentable/otj-logging/milestones{/number}","notifications_url":"https://api.github.com/repos/opentable/otj-logging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentable/otj-logging/labels{/name}","releases_url":"https://api.github.com/repos/opentable/otj-logging/releases{/id}","created_at":"2014-03-19T20:47:45Z","updated_at":"2015-01-05T21:52:47Z","pushed_at":"2015-01-05T21:52:47Z","git_url":"git://github.com/opentable/otj-logging.git","ssh_url":"git@github.com:opentable/otj-logging.git","clone_url":"https://github.com/opentable/otj-logging.git","svn_url":"https://github.com/opentable/otj-logging","homepage":null,"size":511,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentable/otj-logging/pulls/5"},"html":{"href":"https://github.com/opentable/otj-logging/pull/5"},"issue":{"href":"https://api.github.com/repos/opentable/otj-logging/issues/5"},"comments":{"href":"https://api.github.com/repos/opentable/otj-logging/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/opentable/otj-logging/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/opentable/otj-logging/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentable/otj-logging/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/opentable/otj-logging/statuses/e5d79ec4427bfd092f216f4a3dd732f07e4dd62f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}