{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/comments/39452403","id":39452403,"diff_hunk":"@@ -520,6 +524,11 @@ def apply_logging(option, cli_values):\n         '--stdout', dest='stdout', action='store_true', help=\n         'Log all output to STDOUT rather than a logfile.')\n \n+    logging.add_cli(\n+        \"--logformat\", dest=\"log_format\", help=\n+        \"Define a specific format for the log file. This is based on the python logging lib. \"\n+        \"Available parameters can be found at https://docs.python.org/2/library/logging.html#logrecord-attributes\")","path":"mongo_connector/connector.py","position":25,"original_position":25,"commit_id":"f0b75fdc2f2845fd74280e132466ae4e3c33a1fc","original_commit_id":"f0b75fdc2f2845fd74280e132466ae4e3c33a1fc","user":{"login":"llvtt","id":5168837,"avatar_url":"https://avatars.githubusercontent.com/u/5168837?v=3","gravatar_id":"","url":"https://api.github.com/users/llvtt","html_url":"https://github.com/llvtt","followers_url":"https://api.github.com/users/llvtt/followers","following_url":"https://api.github.com/users/llvtt/following{/other_user}","gists_url":"https://api.github.com/users/llvtt/gists{/gist_id}","starred_url":"https://api.github.com/users/llvtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llvtt/subscriptions","organizations_url":"https://api.github.com/users/llvtt/orgs","repos_url":"https://api.github.com/users/llvtt/repos","events_url":"https://api.github.com/users/llvtt/events{/privacy}","received_events_url":"https://api.github.com/users/llvtt/received_events","type":"User","site_admin":false},"body":"Try to keep lines under 80 characters if possible.","created_at":"2015-09-14T21:54:09Z","updated_at":"2015-09-14T21:54:09Z","html_url":"https://github.com/mongodb-labs/mongo-connector/pull/313#discussion_r39452403","pull_request_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/comments/39452403"},"html":{"href":"https://github.com/mongodb-labs/mongo-connector/pull/313#discussion_r39452403"},"pull_request":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313","id":43920886,"html_url":"https://github.com/mongodb-labs/mongo-connector/pull/313","diff_url":"https://github.com/mongodb-labs/mongo-connector/pull/313.diff","patch_url":"https://github.com/mongodb-labs/mongo-connector/pull/313.patch","issue_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/313","number":313,"state":"open","locked":false,"title":"Make logging format configurable","user":{"login":"Sebmaster","id":347870,"avatar_url":"https://avatars.githubusercontent.com/u/347870?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebmaster","html_url":"https://github.com/Sebmaster","followers_url":"https://api.github.com/users/Sebmaster/followers","following_url":"https://api.github.com/users/Sebmaster/following{/other_user}","gists_url":"https://api.github.com/users/Sebmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebmaster/subscriptions","organizations_url":"https://api.github.com/users/Sebmaster/orgs","repos_url":"https://api.github.com/users/Sebmaster/repos","events_url":"https://api.github.com/users/Sebmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Sebmaster/received_events","type":"User","site_admin":false},"body":"This makes the logging format much easier to configure, which makes it easier to switch it to something which can be parsed with logstash for example.","created_at":"2015-09-01T20:12:51Z","updated_at":"2015-09-14T21:54:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"992ffd1d53fa5768bde5d78cad0d6d6cfe291719","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313/commits","review_comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313/comments","review_comment_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/313/comments","statuses_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/statuses/f0b75fdc2f2845fd74280e132466ae4e3c33a1fc","head":{"label":"Sebmaster:feature/configure-logformat","ref":"feature/configure-logformat","sha":"f0b75fdc2f2845fd74280e132466ae4e3c33a1fc","user":{"login":"Sebmaster","id":347870,"avatar_url":"https://avatars.githubusercontent.com/u/347870?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebmaster","html_url":"https://github.com/Sebmaster","followers_url":"https://api.github.com/users/Sebmaster/followers","following_url":"https://api.github.com/users/Sebmaster/following{/other_user}","gists_url":"https://api.github.com/users/Sebmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebmaster/subscriptions","organizations_url":"https://api.github.com/users/Sebmaster/orgs","repos_url":"https://api.github.com/users/Sebmaster/repos","events_url":"https://api.github.com/users/Sebmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Sebmaster/received_events","type":"User","site_admin":false},"repo":{"id":41378296,"name":"mongo-connector","full_name":"Sebmaster/mongo-connector","owner":{"login":"Sebmaster","id":347870,"avatar_url":"https://avatars.githubusercontent.com/u/347870?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebmaster","html_url":"https://github.com/Sebmaster","followers_url":"https://api.github.com/users/Sebmaster/followers","following_url":"https://api.github.com/users/Sebmaster/following{/other_user}","gists_url":"https://api.github.com/users/Sebmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebmaster/subscriptions","organizations_url":"https://api.github.com/users/Sebmaster/orgs","repos_url":"https://api.github.com/users/Sebmaster/repos","events_url":"https://api.github.com/users/Sebmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Sebmaster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sebmaster/mongo-connector","description":"","fork":true,"url":"https://api.github.com/repos/Sebmaster/mongo-connector","forks_url":"https://api.github.com/repos/Sebmaster/mongo-connector/forks","keys_url":"https://api.github.com/repos/Sebmaster/mongo-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sebmaster/mongo-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sebmaster/mongo-connector/teams","hooks_url":"https://api.github.com/repos/Sebmaster/mongo-connector/hooks","issue_events_url":"https://api.github.com/repos/Sebmaster/mongo-connector/issues/events{/number}","events_url":"https://api.github.com/repos/Sebmaster/mongo-connector/events","assignees_url":"https://api.github.com/repos/Sebmaster/mongo-connector/assignees{/user}","branches_url":"https://api.github.com/repos/Sebmaster/mongo-connector/branches{/branch}","tags_url":"https://api.github.com/repos/Sebmaster/mongo-connector/tags","blobs_url":"https://api.github.com/repos/Sebmaster/mongo-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sebmaster/mongo-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sebmaster/mongo-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sebmaster/mongo-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sebmaster/mongo-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/Sebmaster/mongo-connector/languages","stargazers_url":"https://api.github.com/repos/Sebmaster/mongo-connector/stargazers","contributors_url":"https://api.github.com/repos/Sebmaster/mongo-connector/contributors","subscribers_url":"https://api.github.com/repos/Sebmaster/mongo-connector/subscribers","subscription_url":"https://api.github.com/repos/Sebmaster/mongo-connector/subscription","commits_url":"https://api.github.com/repos/Sebmaster/mongo-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sebmaster/mongo-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sebmaster/mongo-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sebmaster/mongo-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sebmaster/mongo-connector/contents/{+path}","compare_url":"https://api.github.com/repos/Sebmaster/mongo-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sebmaster/mongo-connector/merges","archive_url":"https://api.github.com/repos/Sebmaster/mongo-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sebmaster/mongo-connector/downloads","issues_url":"https://api.github.com/repos/Sebmaster/mongo-connector/issues{/number}","pulls_url":"https://api.github.com/repos/Sebmaster/mongo-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/Sebmaster/mongo-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/Sebmaster/mongo-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sebmaster/mongo-connector/labels{/name}","releases_url":"https://api.github.com/repos/Sebmaster/mongo-connector/releases{/id}","created_at":"2015-08-25T17:39:06Z","updated_at":"2015-08-25T17:39:06Z","pushed_at":"2015-09-04T20:20:28Z","git_url":"git://github.com/Sebmaster/mongo-connector.git","ssh_url":"git@github.com:Sebmaster/mongo-connector.git","clone_url":"https://github.com/Sebmaster/mongo-connector.git","svn_url":"https://github.com/Sebmaster/mongo-connector","homepage":null,"size":1992,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mongodb-labs:master","ref":"master","sha":"3df79c656b11bc8f540b42e0a4604bb71a1e2434","user":{"login":"mongodb-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb-labs","html_url":"https://github.com/mongodb-labs","followers_url":"https://api.github.com/users/mongodb-labs/followers","following_url":"https://api.github.com/users/mongodb-labs/following{/other_user}","gists_url":"https://api.github.com/users/mongodb-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb-labs/subscriptions","organizations_url":"https://api.github.com/users/mongodb-labs/orgs","repos_url":"https://api.github.com/users/mongodb-labs/repos","events_url":"https://api.github.com/users/mongodb-labs/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":5362729,"name":"mongo-connector","full_name":"mongodb-labs/mongo-connector","owner":{"login":"mongodb-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb-labs","html_url":"https://github.com/mongodb-labs","followers_url":"https://api.github.com/users/mongodb-labs/followers","following_url":"https://api.github.com/users/mongodb-labs/following{/other_user}","gists_url":"https://api.github.com/users/mongodb-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb-labs/subscriptions","organizations_url":"https://api.github.com/users/mongodb-labs/orgs","repos_url":"https://api.github.com/users/mongodb-labs/repos","events_url":"https://api.github.com/users/mongodb-labs/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb-labs/mongo-connector","description":"","fork":false,"url":"https://api.github.com/repos/mongodb-labs/mongo-connector","forks_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/forks","keys_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/teams","hooks_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/hooks","issue_events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/events","assignees_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/tags","blobs_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/languages","stargazers_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/stargazers","contributors_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/contributors","subscribers_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/subscribers","subscription_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/subscription","commits_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/merges","archive_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/downloads","issues_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/labels{/name}","releases_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/releases{/id}","created_at":"2012-08-09T23:39:36Z","updated_at":"2015-09-14T15:49:47Z","pushed_at":"2015-09-10T00:45:55Z","git_url":"git://github.com/mongodb-labs/mongo-connector.git","ssh_url":"git@github.com:mongodb-labs/mongo-connector.git","clone_url":"https://github.com/mongodb-labs/mongo-connector.git","svn_url":"https://github.com/mongodb-labs/mongo-connector","homepage":null,"size":3409,"stargazers_count":397,"watchers_count":397,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":50,"forks":123,"open_issues":50,"watchers":397,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313"},"html":{"href":"https://github.com/mongodb-labs/mongo-connector/pull/313"},"issue":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/313"},"comments":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb-labs/mongo-connector/statuses/f0b75fdc2f2845fd74280e132466ae4e3c33a1fc"}}}}