{"action":"created","comment":{"url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/comments/24815580","id":24815580,"diff_hunk":"@@ -29,11 +29,34 @@ var _level = {\n   }\n };\n \n+/* we consider the first argument in the log(xx...) as a metaData if it is an Object (not Array or String or number)*/\n+var _objectConstructor = {}.constructor;\n+function isMetaData(anObj) {\n+    if (anObj.constructor === _objectConstructor) {\n+        return true;\n+    }\n+    return false;\n+}\n+\n+// copied from http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically\n+/**\n+ * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1\n+ * @param obj1\n+ * @param obj2\n+ * @returns obj3 a new object based on obj1 and obj2\n+ */\n+function merge_options(obj1,obj2){","path":"cs-logger.js","position":31,"original_position":31,"commit_id":"7ca7ba65224f587cae194c0d6ea11e7c1eb0f9c6","original_commit_id":"7ca7ba65224f587cae194c0d6ea11e7c1eb0f9c6","user":{"login":"vr000m","id":382354,"avatar_url":"https://avatars.githubusercontent.com/u/382354?v=3","gravatar_id":"","url":"https://api.github.com/users/vr000m","html_url":"https://github.com/vr000m","followers_url":"https://api.github.com/users/vr000m/followers","following_url":"https://api.github.com/users/vr000m/following{/other_user}","gists_url":"https://api.github.com/users/vr000m/gists{/gist_id}","starred_url":"https://api.github.com/users/vr000m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vr000m/subscriptions","organizations_url":"https://api.github.com/users/vr000m/orgs","repos_url":"https://api.github.com/users/vr000m/repos","events_url":"https://api.github.com/users/vr000m/events{/privacy}","received_events_url":"https://api.github.com/users/vr000m/received_events","type":"User","site_admin":false},"body":"merge_objects instead?","created_at":"2015-02-17T13:37:02Z","updated_at":"2015-02-17T13:37:02Z","html_url":"https://github.com/dialogue-io/node-csio-logger/pull/1#discussion_r24815580","pull_request_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/comments/24815580"},"html":{"href":"https://github.com/dialogue-io/node-csio-logger/pull/1#discussion_r24815580"},"pull_request":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1","id":29386653,"html_url":"https://github.com/dialogue-io/node-csio-logger/pull/1","diff_url":"https://github.com/dialogue-io/node-csio-logger/pull/1.diff","patch_url":"https://github.com/dialogue-io/node-csio-logger/pull/1.patch","issue_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/1","number":1,"state":"open","locked":false,"title":"Add the capability to log any metaData together with the message.","user":{"login":"sli-cs","id":10948339,"avatar_url":"https://avatars.githubusercontent.com/u/10948339?v=3","gravatar_id":"","url":"https://api.github.com/users/sli-cs","html_url":"https://github.com/sli-cs","followers_url":"https://api.github.com/users/sli-cs/followers","following_url":"https://api.github.com/users/sli-cs/following{/other_user}","gists_url":"https://api.github.com/users/sli-cs/gists{/gist_id}","starred_url":"https://api.github.com/users/sli-cs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sli-cs/subscriptions","organizations_url":"https://api.github.com/users/sli-cs/orgs","repos_url":"https://api.github.com/users/sli-cs/repos","events_url":"https://api.github.com/users/sli-cs/events{/privacy}","received_events_url":"https://api.github.com/users/sli-cs/received_events","type":"User","site_admin":false},"body":"Add the capability to log any metaData together with the message.\r\nmodify README.md a bit","created_at":"2015-02-16T16:49:05Z","updated_at":"2015-02-17T13:37:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"456d41ccb32bbf8ceccbde22430d7aba51306532","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/1/comments","statuses_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/statuses/7ca7ba65224f587cae194c0d6ea11e7c1eb0f9c6","head":{"label":"dialogue-io:add-meta-data-logging","ref":"add-meta-data-logging","sha":"7ca7ba65224f587cae194c0d6ea11e7c1eb0f9c6","user":{"login":"dialogue-io","id":3802591,"avatar_url":"https://avatars.githubusercontent.com/u/3802591?v=3","gravatar_id":"","url":"https://api.github.com/users/dialogue-io","html_url":"https://github.com/dialogue-io","followers_url":"https://api.github.com/users/dialogue-io/followers","following_url":"https://api.github.com/users/dialogue-io/following{/other_user}","gists_url":"https://api.github.com/users/dialogue-io/gists{/gist_id}","starred_url":"https://api.github.com/users/dialogue-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dialogue-io/subscriptions","organizations_url":"https://api.github.com/users/dialogue-io/orgs","repos_url":"https://api.github.com/users/dialogue-io/repos","events_url":"https://api.github.com/users/dialogue-io/events{/privacy}","received_events_url":"https://api.github.com/users/dialogue-io/received_events","type":"Organization","site_admin":false},"repo":{"id":22987669,"name":"node-csio-logger","full_name":"dialogue-io/node-csio-logger","owner":{"login":"dialogue-io","id":3802591,"avatar_url":"https://avatars.githubusercontent.com/u/3802591?v=3","gravatar_id":"","url":"https://api.github.com/users/dialogue-io","html_url":"https://github.com/dialogue-io","followers_url":"https://api.github.com/users/dialogue-io/followers","following_url":"https://api.github.com/users/dialogue-io/following{/other_user}","gists_url":"https://api.github.com/users/dialogue-io/gists{/gist_id}","starred_url":"https://api.github.com/users/dialogue-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dialogue-io/subscriptions","organizations_url":"https://api.github.com/users/dialogue-io/orgs","repos_url":"https://api.github.com/users/dialogue-io/repos","events_url":"https://api.github.com/users/dialogue-io/events{/privacy}","received_events_url":"https://api.github.com/users/dialogue-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dialogue-io/node-csio-logger","description":"npm log meets winston.","fork":false,"url":"https://api.github.com/repos/dialogue-io/node-csio-logger","forks_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/forks","keys_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/teams","hooks_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/hooks","issue_events_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/events{/number}","events_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/events","assignees_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/assignees{/user}","branches_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/branches{/branch}","tags_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/tags","blobs_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/statuses/{sha}","languages_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/languages","stargazers_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/stargazers","contributors_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/contributors","subscribers_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/subscribers","subscription_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/subscription","commits_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/comments/{number}","contents_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/contents/{+path}","compare_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/merges","archive_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/downloads","issues_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues{/number}","pulls_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls{/number}","milestones_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/milestones{/number}","notifications_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/labels{/name}","releases_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/releases{/id}","created_at":"2014-08-15T11:31:03Z","updated_at":"2015-02-11T08:01:32Z","pushed_at":"2015-02-16T16:48:06Z","git_url":"git://github.com/dialogue-io/node-csio-logger.git","ssh_url":"git@github.com:dialogue-io/node-csio-logger.git","clone_url":"https://github.com/dialogue-io/node-csio-logger.git","svn_url":"https://github.com/dialogue-io/node-csio-logger","homepage":"","size":172,"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":"dialogue-io:master","ref":"master","sha":"c0b241aaf8c2f7e006db732aa487aa755e170bd7","user":{"login":"dialogue-io","id":3802591,"avatar_url":"https://avatars.githubusercontent.com/u/3802591?v=3","gravatar_id":"","url":"https://api.github.com/users/dialogue-io","html_url":"https://github.com/dialogue-io","followers_url":"https://api.github.com/users/dialogue-io/followers","following_url":"https://api.github.com/users/dialogue-io/following{/other_user}","gists_url":"https://api.github.com/users/dialogue-io/gists{/gist_id}","starred_url":"https://api.github.com/users/dialogue-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dialogue-io/subscriptions","organizations_url":"https://api.github.com/users/dialogue-io/orgs","repos_url":"https://api.github.com/users/dialogue-io/repos","events_url":"https://api.github.com/users/dialogue-io/events{/privacy}","received_events_url":"https://api.github.com/users/dialogue-io/received_events","type":"Organization","site_admin":false},"repo":{"id":22987669,"name":"node-csio-logger","full_name":"dialogue-io/node-csio-logger","owner":{"login":"dialogue-io","id":3802591,"avatar_url":"https://avatars.githubusercontent.com/u/3802591?v=3","gravatar_id":"","url":"https://api.github.com/users/dialogue-io","html_url":"https://github.com/dialogue-io","followers_url":"https://api.github.com/users/dialogue-io/followers","following_url":"https://api.github.com/users/dialogue-io/following{/other_user}","gists_url":"https://api.github.com/users/dialogue-io/gists{/gist_id}","starred_url":"https://api.github.com/users/dialogue-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dialogue-io/subscriptions","organizations_url":"https://api.github.com/users/dialogue-io/orgs","repos_url":"https://api.github.com/users/dialogue-io/repos","events_url":"https://api.github.com/users/dialogue-io/events{/privacy}","received_events_url":"https://api.github.com/users/dialogue-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dialogue-io/node-csio-logger","description":"npm log meets winston.","fork":false,"url":"https://api.github.com/repos/dialogue-io/node-csio-logger","forks_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/forks","keys_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/teams","hooks_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/hooks","issue_events_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/events{/number}","events_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/events","assignees_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/assignees{/user}","branches_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/branches{/branch}","tags_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/tags","blobs_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/statuses/{sha}","languages_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/languages","stargazers_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/stargazers","contributors_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/contributors","subscribers_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/subscribers","subscription_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/subscription","commits_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/comments/{number}","contents_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/contents/{+path}","compare_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/merges","archive_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/downloads","issues_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues{/number}","pulls_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls{/number}","milestones_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/milestones{/number}","notifications_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/labels{/name}","releases_url":"https://api.github.com/repos/dialogue-io/node-csio-logger/releases{/id}","created_at":"2014-08-15T11:31:03Z","updated_at":"2015-02-11T08:01:32Z","pushed_at":"2015-02-16T16:48:06Z","git_url":"git://github.com/dialogue-io/node-csio-logger.git","ssh_url":"git@github.com:dialogue-io/node-csio-logger.git","clone_url":"https://github.com/dialogue-io/node-csio-logger.git","svn_url":"https://github.com/dialogue-io/node-csio-logger","homepage":"","size":172,"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/dialogue-io/node-csio-logger/pulls/1"},"html":{"href":"https://github.com/dialogue-io/node-csio-logger/pull/1"},"issue":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/1"},"comments":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dialogue-io/node-csio-logger/statuses/7ca7ba65224f587cae194c0d6ea11e7c1eb0f9c6"}}}}