{"action":"created","comment":{"url":"https://api.github.com/repos/uber/logtron/pulls/comments/23875020","id":23875020,"diff_hunk":"@@ -50,28 +52,39 @@ function Logger(opts) {\n \n     this.statsd = opts.statsd;\n \n-    var levels = extend(defaultLevels, opts.levels || {});\n-    var path = opts.path || \"\";\n+    var levels = this.levels = extend(defaultLevels, opts.levels || {});\n+    this.path = opts.path = \"\";\n \n-    Object.keys(levels)\n-        .forEach(function (levelName) {\n+    this.streamsByLevel = Object.keys(levels)\n+        .reduce(function (streamsByLevel, levelName) {","path":"logger.js","position":35,"original_position":35,"commit_id":"94f2ba27ea1829843fd9e0557a24e26d36eb4ec7","original_commit_id":"94f2ba27ea1829843fd9e0557a24e26d36eb4ec7","user":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"body":"nitpick: name function.","created_at":"2015-01-30T21:47:51Z","updated_at":"2015-01-30T21:47:51Z","html_url":"https://github.com/uber/logtron/pull/14#discussion_r23875020","pull_request_url":"https://api.github.com/repos/uber/logtron/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/uber/logtron/pulls/comments/23875020"},"html":{"href":"https://github.com/uber/logtron/pull/14#discussion_r23875020"},"pull_request":{"href":"https://api.github.com/repos/uber/logtron/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/uber/logtron/pulls/14","id":28389396,"html_url":"https://github.com/uber/logtron/pull/14","diff_url":"https://github.com/uber/logtron/pull/14.diff","patch_url":"https://github.com/uber/logtron/pull/14.patch","issue_url":"https://api.github.com/repos/uber/logtron/issues/14","number":14,"state":"open","locked":false,"title":"Logger tree","user":{"login":"kriskowal","id":60294,"avatar_url":"https://avatars.githubusercontent.com/u/60294?v=3","gravatar_id":"","url":"https://api.github.com/users/kriskowal","html_url":"https://github.com/kriskowal","followers_url":"https://api.github.com/users/kriskowal/followers","following_url":"https://api.github.com/users/kriskowal/following{/other_user}","gists_url":"https://api.github.com/users/kriskowal/gists{/gist_id}","starred_url":"https://api.github.com/users/kriskowal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriskowal/subscriptions","organizations_url":"https://api.github.com/users/kriskowal/orgs","repos_url":"https://api.github.com/users/kriskowal/repos","events_url":"https://api.github.com/users/kriskowal/events{/privacy}","received_events_url":"https://api.github.com/users/kriskowal/received_events","type":"User","site_admin":false},"body":"These commits introduce logger.createChild(childPath, levels?)","created_at":"2015-01-30T20:08:47Z","updated_at":"2015-01-30T21:47:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"756f4085512db818d0dd0f47566019f12cc82432","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uber/logtron/pulls/14/commits","review_comments_url":"https://api.github.com/repos/uber/logtron/pulls/14/comments","review_comment_url":"https://api.github.com/repos/uber/logtron/pulls/comments/{number}","comments_url":"https://api.github.com/repos/uber/logtron/issues/14/comments","statuses_url":"https://api.github.com/repos/uber/logtron/statuses/94f2ba27ea1829843fd9e0557a24e26d36eb4ec7","head":{"label":"uber:logger-tree","ref":"logger-tree","sha":"94f2ba27ea1829843fd9e0557a24e26d36eb4ec7","user":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":25270179,"name":"logtron","full_name":"uber/logtron","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/logtron","description":"A logging MACHINE","fork":false,"url":"https://api.github.com/repos/uber/logtron","forks_url":"https://api.github.com/repos/uber/logtron/forks","keys_url":"https://api.github.com/repos/uber/logtron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/logtron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/logtron/teams","hooks_url":"https://api.github.com/repos/uber/logtron/hooks","issue_events_url":"https://api.github.com/repos/uber/logtron/issues/events{/number}","events_url":"https://api.github.com/repos/uber/logtron/events","assignees_url":"https://api.github.com/repos/uber/logtron/assignees{/user}","branches_url":"https://api.github.com/repos/uber/logtron/branches{/branch}","tags_url":"https://api.github.com/repos/uber/logtron/tags","blobs_url":"https://api.github.com/repos/uber/logtron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/logtron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/logtron/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/logtron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/logtron/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/logtron/languages","stargazers_url":"https://api.github.com/repos/uber/logtron/stargazers","contributors_url":"https://api.github.com/repos/uber/logtron/contributors","subscribers_url":"https://api.github.com/repos/uber/logtron/subscribers","subscription_url":"https://api.github.com/repos/uber/logtron/subscription","commits_url":"https://api.github.com/repos/uber/logtron/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/logtron/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/logtron/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/logtron/issues/comments/{number}","contents_url":"https://api.github.com/repos/uber/logtron/contents/{+path}","compare_url":"https://api.github.com/repos/uber/logtron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/logtron/merges","archive_url":"https://api.github.com/repos/uber/logtron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/logtron/downloads","issues_url":"https://api.github.com/repos/uber/logtron/issues{/number}","pulls_url":"https://api.github.com/repos/uber/logtron/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/logtron/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/logtron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/logtron/labels{/name}","releases_url":"https://api.github.com/repos/uber/logtron/releases{/id}","created_at":"2014-10-15T19:33:03Z","updated_at":"2015-01-30T19:23:17Z","pushed_at":"2015-01-30T20:07:36Z","git_url":"git://github.com/uber/logtron.git","ssh_url":"git@github.com:uber/logtron.git","clone_url":"https://github.com/uber/logtron.git","svn_url":"https://github.com/uber/logtron","homepage":null,"size":366,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":24,"default_branch":"master"}},"base":{"label":"uber:master","ref":"master","sha":"e711675f11fc265c8d3ce669fca7fac050696eb3","user":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":25270179,"name":"logtron","full_name":"uber/logtron","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/logtron","description":"A logging MACHINE","fork":false,"url":"https://api.github.com/repos/uber/logtron","forks_url":"https://api.github.com/repos/uber/logtron/forks","keys_url":"https://api.github.com/repos/uber/logtron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/logtron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/logtron/teams","hooks_url":"https://api.github.com/repos/uber/logtron/hooks","issue_events_url":"https://api.github.com/repos/uber/logtron/issues/events{/number}","events_url":"https://api.github.com/repos/uber/logtron/events","assignees_url":"https://api.github.com/repos/uber/logtron/assignees{/user}","branches_url":"https://api.github.com/repos/uber/logtron/branches{/branch}","tags_url":"https://api.github.com/repos/uber/logtron/tags","blobs_url":"https://api.github.com/repos/uber/logtron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/logtron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/logtron/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/logtron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/logtron/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/logtron/languages","stargazers_url":"https://api.github.com/repos/uber/logtron/stargazers","contributors_url":"https://api.github.com/repos/uber/logtron/contributors","subscribers_url":"https://api.github.com/repos/uber/logtron/subscribers","subscription_url":"https://api.github.com/repos/uber/logtron/subscription","commits_url":"https://api.github.com/repos/uber/logtron/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/logtron/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/logtron/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/logtron/issues/comments/{number}","contents_url":"https://api.github.com/repos/uber/logtron/contents/{+path}","compare_url":"https://api.github.com/repos/uber/logtron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/logtron/merges","archive_url":"https://api.github.com/repos/uber/logtron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/logtron/downloads","issues_url":"https://api.github.com/repos/uber/logtron/issues{/number}","pulls_url":"https://api.github.com/repos/uber/logtron/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/logtron/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/logtron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/logtron/labels{/name}","releases_url":"https://api.github.com/repos/uber/logtron/releases{/id}","created_at":"2014-10-15T19:33:03Z","updated_at":"2015-01-30T19:23:17Z","pushed_at":"2015-01-30T20:07:36Z","git_url":"git://github.com/uber/logtron.git","ssh_url":"git@github.com:uber/logtron.git","clone_url":"https://github.com/uber/logtron.git","svn_url":"https://github.com/uber/logtron","homepage":null,"size":366,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uber/logtron/pulls/14"},"html":{"href":"https://github.com/uber/logtron/pull/14"},"issue":{"href":"https://api.github.com/repos/uber/logtron/issues/14"},"comments":{"href":"https://api.github.com/repos/uber/logtron/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/uber/logtron/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/uber/logtron/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/uber/logtron/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/uber/logtron/statuses/94f2ba27ea1829843fd9e0557a24e26d36eb4ec7"}}}}