{"action":"created","comment":{"url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/comments/48752557","id":48752557,"diff_hunk":"@@ -69,7 +69,12 @@ exports.create = function(logger_name, log_level, log_path) {\n   // Use defined log file path or fall back to the root directory\n   const log_file_path = process.env.NODE_LOG_FILE_PATH || path.join(log_path, `${logger_name}.log`);\n \n-  return Bunyan.createLogger(internals.provideCreateOptions(logger_name, log_level, log_file_path));\n+  const logger = Bunyan.createLogger(internals.provideCreateOptions(logger_name, log_level, log_file_path));\n+\n+  logger.createContextLoggerFromPath = function(module_path) {\n+    return logger.child({ module: internals.findModuleNameFromPath(module_path) });","path":"index.js","position":8,"original_position":8,"commit_id":"6d1db987a5b1a20434521c6d68ef1f9dbbeda59a","original_commit_id":"6d1db987a5b1a20434521c6d68ef1f9dbbeda59a","user":{"login":"sommestad","id":61638,"avatar_url":"https://avatars.githubusercontent.com/u/61638?v=3","gravatar_id":"","url":"https://api.github.com/users/sommestad","html_url":"https://github.com/sommestad","followers_url":"https://api.github.com/users/sommestad/followers","following_url":"https://api.github.com/users/sommestad/following{/other_user}","gists_url":"https://api.github.com/users/sommestad/gists{/gist_id}","starred_url":"https://api.github.com/users/sommestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sommestad/subscriptions","organizations_url":"https://api.github.com/users/sommestad/orgs","repos_url":"https://api.github.com/users/sommestad/repos","events_url":"https://api.github.com/users/sommestad/events{/privacy}","received_events_url":"https://api.github.com/users/sommestad/received_events","type":"User","site_admin":false},"body":"Was it intentional to change from `context` to `module`? I think it's context where we've used it previously...?","created_at":"2016-01-04T16:58:54Z","updated_at":"2016-01-04T16:58:54Z","html_url":"https://github.com/Springworks/node-logger-factory/pull/42#discussion_r48752557","pull_request_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/comments/48752557"},"html":{"href":"https://github.com/Springworks/node-logger-factory/pull/42#discussion_r48752557"},"pull_request":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42","id":54971130,"html_url":"https://github.com/Springworks/node-logger-factory/pull/42","diff_url":"https://github.com/Springworks/node-logger-factory/pull/42.diff","patch_url":"https://github.com/Springworks/node-logger-factory/pull/42.patch","issue_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/42","number":42,"state":"open","locked":false,"title":"Add support for creating child logger with path-derived module name","user":{"login":"magwo","id":548345,"avatar_url":"https://avatars.githubusercontent.com/u/548345?v=3","gravatar_id":"","url":"https://api.github.com/users/magwo","html_url":"https://github.com/magwo","followers_url":"https://api.github.com/users/magwo/followers","following_url":"https://api.github.com/users/magwo/following{/other_user}","gists_url":"https://api.github.com/users/magwo/gists{/gist_id}","starred_url":"https://api.github.com/users/magwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magwo/subscriptions","organizations_url":"https://api.github.com/users/magwo/orgs","repos_url":"https://api.github.com/users/magwo/repos","events_url":"https://api.github.com/users/magwo/events{/privacy}","received_events_url":"https://api.github.com/users/magwo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-04T12:42:27Z","updated_at":"2016-01-04T16:58:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf4e9da49d9e8e3b0fe9dcc839b7a9fb4805648d","assignee":{"login":"sommestad","id":61638,"avatar_url":"https://avatars.githubusercontent.com/u/61638?v=3","gravatar_id":"","url":"https://api.github.com/users/sommestad","html_url":"https://github.com/sommestad","followers_url":"https://api.github.com/users/sommestad/followers","following_url":"https://api.github.com/users/sommestad/following{/other_user}","gists_url":"https://api.github.com/users/sommestad/gists{/gist_id}","starred_url":"https://api.github.com/users/sommestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sommestad/subscriptions","organizations_url":"https://api.github.com/users/sommestad/orgs","repos_url":"https://api.github.com/users/sommestad/repos","events_url":"https://api.github.com/users/sommestad/events{/privacy}","received_events_url":"https://api.github.com/users/sommestad/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42/commits","review_comments_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42/comments","review_comment_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/42/comments","statuses_url":"https://api.github.com/repos/Springworks/node-logger-factory/statuses/6d1db987a5b1a20434521c6d68ef1f9dbbeda59a","head":{"label":"Springworks:pathderivedchild","ref":"pathderivedchild","sha":"6d1db987a5b1a20434521c6d68ef1f9dbbeda59a","user":{"login":"Springworks","id":1337521,"avatar_url":"https://avatars.githubusercontent.com/u/1337521?v=3","gravatar_id":"","url":"https://api.github.com/users/Springworks","html_url":"https://github.com/Springworks","followers_url":"https://api.github.com/users/Springworks/followers","following_url":"https://api.github.com/users/Springworks/following{/other_user}","gists_url":"https://api.github.com/users/Springworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Springworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Springworks/subscriptions","organizations_url":"https://api.github.com/users/Springworks/orgs","repos_url":"https://api.github.com/users/Springworks/repos","events_url":"https://api.github.com/users/Springworks/events{/privacy}","received_events_url":"https://api.github.com/users/Springworks/received_events","type":"Organization","site_admin":false},"repo":{"id":26479312,"name":"node-logger-factory","full_name":"Springworks/node-logger-factory","owner":{"login":"Springworks","id":1337521,"avatar_url":"https://avatars.githubusercontent.com/u/1337521?v=3","gravatar_id":"","url":"https://api.github.com/users/Springworks","html_url":"https://github.com/Springworks","followers_url":"https://api.github.com/users/Springworks/followers","following_url":"https://api.github.com/users/Springworks/following{/other_user}","gists_url":"https://api.github.com/users/Springworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Springworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Springworks/subscriptions","organizations_url":"https://api.github.com/users/Springworks/orgs","repos_url":"https://api.github.com/users/Springworks/repos","events_url":"https://api.github.com/users/Springworks/events{/privacy}","received_events_url":"https://api.github.com/users/Springworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Springworks/node-logger-factory","description":"A wrapper around bunyan logger.","fork":false,"url":"https://api.github.com/repos/Springworks/node-logger-factory","forks_url":"https://api.github.com/repos/Springworks/node-logger-factory/forks","keys_url":"https://api.github.com/repos/Springworks/node-logger-factory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Springworks/node-logger-factory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Springworks/node-logger-factory/teams","hooks_url":"https://api.github.com/repos/Springworks/node-logger-factory/hooks","issue_events_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/events{/number}","events_url":"https://api.github.com/repos/Springworks/node-logger-factory/events","assignees_url":"https://api.github.com/repos/Springworks/node-logger-factory/assignees{/user}","branches_url":"https://api.github.com/repos/Springworks/node-logger-factory/branches{/branch}","tags_url":"https://api.github.com/repos/Springworks/node-logger-factory/tags","blobs_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/refs{/sha}","trees_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Springworks/node-logger-factory/statuses/{sha}","languages_url":"https://api.github.com/repos/Springworks/node-logger-factory/languages","stargazers_url":"https://api.github.com/repos/Springworks/node-logger-factory/stargazers","contributors_url":"https://api.github.com/repos/Springworks/node-logger-factory/contributors","subscribers_url":"https://api.github.com/repos/Springworks/node-logger-factory/subscribers","subscription_url":"https://api.github.com/repos/Springworks/node-logger-factory/subscription","commits_url":"https://api.github.com/repos/Springworks/node-logger-factory/commits{/sha}","git_commits_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/commits{/sha}","comments_url":"https://api.github.com/repos/Springworks/node-logger-factory/comments{/number}","issue_comment_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/comments{/number}","contents_url":"https://api.github.com/repos/Springworks/node-logger-factory/contents/{+path}","compare_url":"https://api.github.com/repos/Springworks/node-logger-factory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Springworks/node-logger-factory/merges","archive_url":"https://api.github.com/repos/Springworks/node-logger-factory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Springworks/node-logger-factory/downloads","issues_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues{/number}","pulls_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls{/number}","milestones_url":"https://api.github.com/repos/Springworks/node-logger-factory/milestones{/number}","notifications_url":"https://api.github.com/repos/Springworks/node-logger-factory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Springworks/node-logger-factory/labels{/name}","releases_url":"https://api.github.com/repos/Springworks/node-logger-factory/releases{/id}","created_at":"2014-11-11T10:01:49Z","updated_at":"2015-10-15T09:29:19Z","pushed_at":"2016-01-04T16:12:56Z","git_url":"git://github.com/Springworks/node-logger-factory.git","ssh_url":"git@github.com:Springworks/node-logger-factory.git","clone_url":"https://github.com/Springworks/node-logger-factory.git","svn_url":"https://github.com/Springworks/node-logger-factory","homepage":"https://www.npmjs.com/package/@springworks/logger-factory","size":88,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Springworks:master","ref":"master","sha":"40946d77082badcaebb6c60191df7ec2bc7474c7","user":{"login":"Springworks","id":1337521,"avatar_url":"https://avatars.githubusercontent.com/u/1337521?v=3","gravatar_id":"","url":"https://api.github.com/users/Springworks","html_url":"https://github.com/Springworks","followers_url":"https://api.github.com/users/Springworks/followers","following_url":"https://api.github.com/users/Springworks/following{/other_user}","gists_url":"https://api.github.com/users/Springworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Springworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Springworks/subscriptions","organizations_url":"https://api.github.com/users/Springworks/orgs","repos_url":"https://api.github.com/users/Springworks/repos","events_url":"https://api.github.com/users/Springworks/events{/privacy}","received_events_url":"https://api.github.com/users/Springworks/received_events","type":"Organization","site_admin":false},"repo":{"id":26479312,"name":"node-logger-factory","full_name":"Springworks/node-logger-factory","owner":{"login":"Springworks","id":1337521,"avatar_url":"https://avatars.githubusercontent.com/u/1337521?v=3","gravatar_id":"","url":"https://api.github.com/users/Springworks","html_url":"https://github.com/Springworks","followers_url":"https://api.github.com/users/Springworks/followers","following_url":"https://api.github.com/users/Springworks/following{/other_user}","gists_url":"https://api.github.com/users/Springworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Springworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Springworks/subscriptions","organizations_url":"https://api.github.com/users/Springworks/orgs","repos_url":"https://api.github.com/users/Springworks/repos","events_url":"https://api.github.com/users/Springworks/events{/privacy}","received_events_url":"https://api.github.com/users/Springworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Springworks/node-logger-factory","description":"A wrapper around bunyan logger.","fork":false,"url":"https://api.github.com/repos/Springworks/node-logger-factory","forks_url":"https://api.github.com/repos/Springworks/node-logger-factory/forks","keys_url":"https://api.github.com/repos/Springworks/node-logger-factory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Springworks/node-logger-factory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Springworks/node-logger-factory/teams","hooks_url":"https://api.github.com/repos/Springworks/node-logger-factory/hooks","issue_events_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/events{/number}","events_url":"https://api.github.com/repos/Springworks/node-logger-factory/events","assignees_url":"https://api.github.com/repos/Springworks/node-logger-factory/assignees{/user}","branches_url":"https://api.github.com/repos/Springworks/node-logger-factory/branches{/branch}","tags_url":"https://api.github.com/repos/Springworks/node-logger-factory/tags","blobs_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/refs{/sha}","trees_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Springworks/node-logger-factory/statuses/{sha}","languages_url":"https://api.github.com/repos/Springworks/node-logger-factory/languages","stargazers_url":"https://api.github.com/repos/Springworks/node-logger-factory/stargazers","contributors_url":"https://api.github.com/repos/Springworks/node-logger-factory/contributors","subscribers_url":"https://api.github.com/repos/Springworks/node-logger-factory/subscribers","subscription_url":"https://api.github.com/repos/Springworks/node-logger-factory/subscription","commits_url":"https://api.github.com/repos/Springworks/node-logger-factory/commits{/sha}","git_commits_url":"https://api.github.com/repos/Springworks/node-logger-factory/git/commits{/sha}","comments_url":"https://api.github.com/repos/Springworks/node-logger-factory/comments{/number}","issue_comment_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues/comments{/number}","contents_url":"https://api.github.com/repos/Springworks/node-logger-factory/contents/{+path}","compare_url":"https://api.github.com/repos/Springworks/node-logger-factory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Springworks/node-logger-factory/merges","archive_url":"https://api.github.com/repos/Springworks/node-logger-factory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Springworks/node-logger-factory/downloads","issues_url":"https://api.github.com/repos/Springworks/node-logger-factory/issues{/number}","pulls_url":"https://api.github.com/repos/Springworks/node-logger-factory/pulls{/number}","milestones_url":"https://api.github.com/repos/Springworks/node-logger-factory/milestones{/number}","notifications_url":"https://api.github.com/repos/Springworks/node-logger-factory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Springworks/node-logger-factory/labels{/name}","releases_url":"https://api.github.com/repos/Springworks/node-logger-factory/releases{/id}","created_at":"2014-11-11T10:01:49Z","updated_at":"2015-10-15T09:29:19Z","pushed_at":"2016-01-04T16:12:56Z","git_url":"git://github.com/Springworks/node-logger-factory.git","ssh_url":"git@github.com:Springworks/node-logger-factory.git","clone_url":"https://github.com/Springworks/node-logger-factory.git","svn_url":"https://github.com/Springworks/node-logger-factory","homepage":"https://www.npmjs.com/package/@springworks/logger-factory","size":88,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42"},"html":{"href":"https://github.com/Springworks/node-logger-factory/pull/42"},"issue":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/issues/42"},"comments":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/Springworks/node-logger-factory/statuses/6d1db987a5b1a20434521c6d68ef1f9dbbeda59a"}}}}