{"action":"created","comment":{"url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments/72278278","id":72278278,"diff_hunk":"@@ -1,9 +1,55 @@\n /**\n  * Created by chenrozenes on 12/07/2016.\n  */\n+\n+var _ = require('lodash');\n+var util = require('util');\n var winston = require('winston');\n \n-var logger = new (winston.Logger)({\n+/**\n+ * Logger Objet\n+ * @param options\n+ * @constructor\n+ */\n+function LoggerObj(options) {\n+  winston.Logger.call(this, options);\n+}\n+\n+util.inherits(LoggerObj, winston.Logger);\n+\n+/**\n+ * Replace the old logger with new one\n+ * @param loggerInstance\n+ */\n+LoggerObj.prototype.setLogger = function setLogger(loggerInstance) {\n+  // Delete all the old methods\n+  _.forIn(this, (value, key) => {","path":"lib/logger.js","position":27,"original_position":27,"commit_id":"4f056874b6998ba27263b30d77489dbd4f2ed782","original_commit_id":"4f056874b6998ba27263b30d77489dbd4f2ed782","user":{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false},"body":"Wow why ? is that because it deletes setLogger otherwise ? ","created_at":"2016-07-26T15:51:14Z","updated_at":"2016-07-26T15:51:14Z","html_url":"https://github.com/bookmd/rabbit-task/pull/18#discussion_r72278278","pull_request_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments/72278278"},"html":{"href":"https://github.com/bookmd/rabbit-task/pull/18#discussion_r72278278"},"pull_request":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18","id":78863134,"html_url":"https://github.com/bookmd/rabbit-task/pull/18","diff_url":"https://github.com/bookmd/rabbit-task/pull/18.diff","patch_url":"https://github.com/bookmd/rabbit-task/pull/18.patch","issue_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/18","number":18,"state":"open","locked":false,"title":"Add Set Logger function","user":{"login":"rom10","id":5627172,"avatar_url":"https://avatars.githubusercontent.com/u/5627172?v=3","gravatar_id":"","url":"https://api.github.com/users/rom10","html_url":"https://github.com/rom10","followers_url":"https://api.github.com/users/rom10/followers","following_url":"https://api.github.com/users/rom10/following{/other_user}","gists_url":"https://api.github.com/users/rom10/gists{/gist_id}","starred_url":"https://api.github.com/users/rom10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom10/subscriptions","organizations_url":"https://api.github.com/users/rom10/orgs","repos_url":"https://api.github.com/users/rom10/repos","events_url":"https://api.github.com/users/rom10/events{/privacy}","received_events_url":"https://api.github.com/users/rom10/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T14:36:30Z","updated_at":"2016-07-26T15:51:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68e00dcefe8b00beff4c1b5c0e526446f2c5dd98","assignee":{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false},"assignees":[{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18/commits","review_comments_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18/comments","review_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/18/comments","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/4f056874b6998ba27263b30d77489dbd4f2ed782","head":{"label":"bookmd:feature-setLogger","ref":"feature-setLogger","sha":"4f056874b6998ba27263b30d77489dbd4f2ed782","user":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"repo":{"id":47721064,"name":"rabbit-task","full_name":"bookmd/rabbit-task","owner":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bookmd/rabbit-task","description":"Opinionated RabbitMQ worker","fork":false,"url":"https://api.github.com/repos/bookmd/rabbit-task","forks_url":"https://api.github.com/repos/bookmd/rabbit-task/forks","keys_url":"https://api.github.com/repos/bookmd/rabbit-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bookmd/rabbit-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bookmd/rabbit-task/teams","hooks_url":"https://api.github.com/repos/bookmd/rabbit-task/hooks","issue_events_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/events{/number}","events_url":"https://api.github.com/repos/bookmd/rabbit-task/events","assignees_url":"https://api.github.com/repos/bookmd/rabbit-task/assignees{/user}","branches_url":"https://api.github.com/repos/bookmd/rabbit-task/branches{/branch}","tags_url":"https://api.github.com/repos/bookmd/rabbit-task/tags","blobs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bookmd/rabbit-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/bookmd/rabbit-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/{sha}","languages_url":"https://api.github.com/repos/bookmd/rabbit-task/languages","stargazers_url":"https://api.github.com/repos/bookmd/rabbit-task/stargazers","contributors_url":"https://api.github.com/repos/bookmd/rabbit-task/contributors","subscribers_url":"https://api.github.com/repos/bookmd/rabbit-task/subscribers","subscription_url":"https://api.github.com/repos/bookmd/rabbit-task/subscription","commits_url":"https://api.github.com/repos/bookmd/rabbit-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/bookmd/rabbit-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/bookmd/rabbit-task/contents/{+path}","compare_url":"https://api.github.com/repos/bookmd/rabbit-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bookmd/rabbit-task/merges","archive_url":"https://api.github.com/repos/bookmd/rabbit-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bookmd/rabbit-task/downloads","issues_url":"https://api.github.com/repos/bookmd/rabbit-task/issues{/number}","pulls_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls{/number}","milestones_url":"https://api.github.com/repos/bookmd/rabbit-task/milestones{/number}","notifications_url":"https://api.github.com/repos/bookmd/rabbit-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bookmd/rabbit-task/labels{/name}","releases_url":"https://api.github.com/repos/bookmd/rabbit-task/releases{/id}","deployments_url":"https://api.github.com/repos/bookmd/rabbit-task/deployments","created_at":"2015-12-09T21:46:57Z","updated_at":"2016-05-24T15:38:46Z","pushed_at":"2016-07-26T14:36:30Z","git_url":"git://github.com/bookmd/rabbit-task.git","ssh_url":"git@github.com:bookmd/rabbit-task.git","clone_url":"https://github.com/bookmd/rabbit-task.git","svn_url":"https://github.com/bookmd/rabbit-task","homepage":"","size":53,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"bookmd:master","ref":"master","sha":"8f69aa9623afc44156215b92eb39a2e2509630e6","user":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"repo":{"id":47721064,"name":"rabbit-task","full_name":"bookmd/rabbit-task","owner":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bookmd/rabbit-task","description":"Opinionated RabbitMQ worker","fork":false,"url":"https://api.github.com/repos/bookmd/rabbit-task","forks_url":"https://api.github.com/repos/bookmd/rabbit-task/forks","keys_url":"https://api.github.com/repos/bookmd/rabbit-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bookmd/rabbit-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bookmd/rabbit-task/teams","hooks_url":"https://api.github.com/repos/bookmd/rabbit-task/hooks","issue_events_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/events{/number}","events_url":"https://api.github.com/repos/bookmd/rabbit-task/events","assignees_url":"https://api.github.com/repos/bookmd/rabbit-task/assignees{/user}","branches_url":"https://api.github.com/repos/bookmd/rabbit-task/branches{/branch}","tags_url":"https://api.github.com/repos/bookmd/rabbit-task/tags","blobs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bookmd/rabbit-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/bookmd/rabbit-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/{sha}","languages_url":"https://api.github.com/repos/bookmd/rabbit-task/languages","stargazers_url":"https://api.github.com/repos/bookmd/rabbit-task/stargazers","contributors_url":"https://api.github.com/repos/bookmd/rabbit-task/contributors","subscribers_url":"https://api.github.com/repos/bookmd/rabbit-task/subscribers","subscription_url":"https://api.github.com/repos/bookmd/rabbit-task/subscription","commits_url":"https://api.github.com/repos/bookmd/rabbit-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/bookmd/rabbit-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/bookmd/rabbit-task/contents/{+path}","compare_url":"https://api.github.com/repos/bookmd/rabbit-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bookmd/rabbit-task/merges","archive_url":"https://api.github.com/repos/bookmd/rabbit-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bookmd/rabbit-task/downloads","issues_url":"https://api.github.com/repos/bookmd/rabbit-task/issues{/number}","pulls_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls{/number}","milestones_url":"https://api.github.com/repos/bookmd/rabbit-task/milestones{/number}","notifications_url":"https://api.github.com/repos/bookmd/rabbit-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bookmd/rabbit-task/labels{/name}","releases_url":"https://api.github.com/repos/bookmd/rabbit-task/releases{/id}","deployments_url":"https://api.github.com/repos/bookmd/rabbit-task/deployments","created_at":"2015-12-09T21:46:57Z","updated_at":"2016-05-24T15:38:46Z","pushed_at":"2016-07-26T14:36:30Z","git_url":"git://github.com/bookmd/rabbit-task.git","ssh_url":"git@github.com:bookmd/rabbit-task.git","clone_url":"https://github.com/bookmd/rabbit-task.git","svn_url":"https://github.com/bookmd/rabbit-task","homepage":"","size":53,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18"},"html":{"href":"https://github.com/bookmd/rabbit-task/pull/18"},"issue":{"href":"https://api.github.com/repos/bookmd/rabbit-task/issues/18"},"comments":{"href":"https://api.github.com/repos/bookmd/rabbit-task/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/bookmd/rabbit-task/statuses/4f056874b6998ba27263b30d77489dbd4f2ed782"}}}}
{"actor":{"display_login":"asafdav"}}