{"action":"created","comment":{"url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/comments/58149443","id":58149443,"diff_hunk":"@@ -0,0 +1,70 @@\n+//\n+// Adapter Log\n+//\n+module.exports = function initLogAdapter(models, adapters) {\n+\n+  //\n+  // Initialize Bunyan logger and store it in libs\n+  // @TODO: Fix model dependency\n+  //\n+  adapters.createLogger = function (libs) {\n+\n+    const Log = models.log;\n+\n+    const bunyanMongodbStream = require('bunyan-mongodb-stream')({ model: Log });","path":"server/adapters/logAdapter.js","position":14,"original_position":14,"commit_id":"ed40ffafa7fc638c56c5ecdcbfee764c294b305e","original_commit_id":"ed40ffafa7fc638c56c5ecdcbfee764c294b305e","user":{"login":"vuongc","id":6729188,"avatar_url":"https://avatars.githubusercontent.com/u/6729188?v=3","gravatar_id":"","url":"https://api.github.com/users/vuongc","html_url":"https://github.com/vuongc","followers_url":"https://api.github.com/users/vuongc/followers","following_url":"https://api.github.com/users/vuongc/following{/other_user}","gists_url":"https://api.github.com/users/vuongc/gists{/gist_id}","starred_url":"https://api.github.com/users/vuongc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuongc/subscriptions","organizations_url":"https://api.github.com/users/vuongc/orgs","repos_url":"https://api.github.com/users/vuongc/repos","events_url":"https://api.github.com/users/vuongc/events{/privacy}","received_events_url":"https://api.github.com/users/vuongc/received_events","type":"User","site_admin":false},"body":"May need to remove the initialization of bunyan module here","created_at":"2016-04-01T00:41:01Z","updated_at":"2016-04-01T00:41:01Z","html_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6#discussion_r58149443","pull_request_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/comments/58149443"},"html":{"href":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6#discussion_r58149443"},"pull_request":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6","id":64880959,"html_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6","diff_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6.diff","patch_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6.patch","issue_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/6","number":6,"state":"open","locked":false,"title":"Module log","user":{"login":"vuongc","id":6729188,"avatar_url":"https://avatars.githubusercontent.com/u/6729188?v=3","gravatar_id":"","url":"https://api.github.com/users/vuongc","html_url":"https://github.com/vuongc","followers_url":"https://api.github.com/users/vuongc/followers","following_url":"https://api.github.com/users/vuongc/following{/other_user}","gists_url":"https://api.github.com/users/vuongc/gists{/gist_id}","starred_url":"https://api.github.com/users/vuongc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuongc/subscriptions","organizations_url":"https://api.github.com/users/vuongc/orgs","repos_url":"https://api.github.com/users/vuongc/repos","events_url":"https://api.github.com/users/vuongc/events{/privacy}","received_events_url":"https://api.github.com/users/vuongc/received_events","type":"User","site_admin":false},"body":"#3: Module logs","created_at":"2016-04-01T00:38:48Z","updated_at":"2016-04-01T00:41:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efc31491e424ffe9ab0f1248c8bbb2c5d10a3818","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6/commits","review_comments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6/comments","review_comment_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/6/comments","statuses_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/statuses/ed40ffafa7fc638c56c5ecdcbfee764c294b305e","head":{"label":"EIP-SAM:module_log","ref":"module_log","sha":"ed40ffafa7fc638c56c5ecdcbfee764c294b305e","user":{"login":"EIP-SAM","id":12535470,"avatar_url":"https://avatars.githubusercontent.com/u/12535470?v=3","gravatar_id":"","url":"https://api.github.com/users/EIP-SAM","html_url":"https://github.com/EIP-SAM","followers_url":"https://api.github.com/users/EIP-SAM/followers","following_url":"https://api.github.com/users/EIP-SAM/following{/other_user}","gists_url":"https://api.github.com/users/EIP-SAM/gists{/gist_id}","starred_url":"https://api.github.com/users/EIP-SAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EIP-SAM/subscriptions","organizations_url":"https://api.github.com/users/EIP-SAM/orgs","repos_url":"https://api.github.com/users/EIP-SAM/repos","events_url":"https://api.github.com/users/EIP-SAM/events{/privacy}","received_events_url":"https://api.github.com/users/EIP-SAM/received_events","type":"Organization","site_admin":false},"repo":{"id":50298197,"name":"SAM-Solution-Node-js","full_name":"EIP-SAM/SAM-Solution-Node-js","owner":{"login":"EIP-SAM","id":12535470,"avatar_url":"https://avatars.githubusercontent.com/u/12535470?v=3","gravatar_id":"","url":"https://api.github.com/users/EIP-SAM","html_url":"https://github.com/EIP-SAM","followers_url":"https://api.github.com/users/EIP-SAM/followers","following_url":"https://api.github.com/users/EIP-SAM/following{/other_user}","gists_url":"https://api.github.com/users/EIP-SAM/gists{/gist_id}","starred_url":"https://api.github.com/users/EIP-SAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EIP-SAM/subscriptions","organizations_url":"https://api.github.com/users/EIP-SAM/orgs","repos_url":"https://api.github.com/users/EIP-SAM/repos","events_url":"https://api.github.com/users/EIP-SAM/events{/privacy}","received_events_url":"https://api.github.com/users/EIP-SAM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js","description":"System Administration Manager","fork":false,"url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js","forks_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/forks","keys_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/teams","hooks_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/hooks","issue_events_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/events{/number}","events_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/events","assignees_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/assignees{/user}","branches_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/branches{/branch}","tags_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/tags","blobs_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/statuses/{sha}","languages_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/languages","stargazers_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/stargazers","contributors_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/contributors","subscribers_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/subscribers","subscription_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/subscription","commits_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/contents/{+path}","compare_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/merges","archive_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/downloads","issues_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues{/number}","pulls_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls{/number}","milestones_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/milestones{/number}","notifications_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/labels{/name}","releases_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/releases{/id}","deployments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/deployments","created_at":"2016-01-24T17:13:37Z","updated_at":"2016-03-05T22:07:50Z","pushed_at":"2016-04-01T00:38:49Z","git_url":"git://github.com/EIP-SAM/SAM-Solution-Node-js.git","ssh_url":"git@github.com:EIP-SAM/SAM-Solution-Node-js.git","clone_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js.git","svn_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"EIP-SAM:develop","ref":"develop","sha":"3601f10e0687607c2cc402391fd90f6de8dc54ec","user":{"login":"EIP-SAM","id":12535470,"avatar_url":"https://avatars.githubusercontent.com/u/12535470?v=3","gravatar_id":"","url":"https://api.github.com/users/EIP-SAM","html_url":"https://github.com/EIP-SAM","followers_url":"https://api.github.com/users/EIP-SAM/followers","following_url":"https://api.github.com/users/EIP-SAM/following{/other_user}","gists_url":"https://api.github.com/users/EIP-SAM/gists{/gist_id}","starred_url":"https://api.github.com/users/EIP-SAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EIP-SAM/subscriptions","organizations_url":"https://api.github.com/users/EIP-SAM/orgs","repos_url":"https://api.github.com/users/EIP-SAM/repos","events_url":"https://api.github.com/users/EIP-SAM/events{/privacy}","received_events_url":"https://api.github.com/users/EIP-SAM/received_events","type":"Organization","site_admin":false},"repo":{"id":50298197,"name":"SAM-Solution-Node-js","full_name":"EIP-SAM/SAM-Solution-Node-js","owner":{"login":"EIP-SAM","id":12535470,"avatar_url":"https://avatars.githubusercontent.com/u/12535470?v=3","gravatar_id":"","url":"https://api.github.com/users/EIP-SAM","html_url":"https://github.com/EIP-SAM","followers_url":"https://api.github.com/users/EIP-SAM/followers","following_url":"https://api.github.com/users/EIP-SAM/following{/other_user}","gists_url":"https://api.github.com/users/EIP-SAM/gists{/gist_id}","starred_url":"https://api.github.com/users/EIP-SAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EIP-SAM/subscriptions","organizations_url":"https://api.github.com/users/EIP-SAM/orgs","repos_url":"https://api.github.com/users/EIP-SAM/repos","events_url":"https://api.github.com/users/EIP-SAM/events{/privacy}","received_events_url":"https://api.github.com/users/EIP-SAM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js","description":"System Administration Manager","fork":false,"url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js","forks_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/forks","keys_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/teams","hooks_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/hooks","issue_events_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/events{/number}","events_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/events","assignees_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/assignees{/user}","branches_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/branches{/branch}","tags_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/tags","blobs_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/statuses/{sha}","languages_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/languages","stargazers_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/stargazers","contributors_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/contributors","subscribers_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/subscribers","subscription_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/subscription","commits_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/contents/{+path}","compare_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/merges","archive_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/downloads","issues_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues{/number}","pulls_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls{/number}","milestones_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/milestones{/number}","notifications_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/labels{/name}","releases_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/releases{/id}","deployments_url":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/deployments","created_at":"2016-01-24T17:13:37Z","updated_at":"2016-03-05T22:07:50Z","pushed_at":"2016-04-01T00:38:49Z","git_url":"git://github.com/EIP-SAM/SAM-Solution-Node-js.git","ssh_url":"git@github.com:EIP-SAM/SAM-Solution-Node-js.git","clone_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js.git","svn_url":"https://github.com/EIP-SAM/SAM-Solution-Node-js","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6"},"html":{"href":"https://github.com/EIP-SAM/SAM-Solution-Node-js/pull/6"},"issue":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/6"},"comments":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/EIP-SAM/SAM-Solution-Node-js/statuses/ed40ffafa7fc638c56c5ecdcbfee764c294b305e"}}}}