{"action":"created","comment":{"url":"https://api.github.com/repos/cocotb/cocotb/pulls/comments/354114275","pull_request_review_id":327311327,"id":354114275,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NDExNDI3NQ==","diff_hunk":"@@ -39,7 +39,10 @@\n \n import cocotb.handle\n from cocotb.scheduler import Scheduler\n-from cocotb.log import SimBaseLog, SimLog\n+try:\n+    from cocotb_custom.log import SimBaseLog, SimLog\n+except ModuleNotFoundError:\n+    from cocotb.log import SimBaseLog, SimLog","path":"cocotb/__init__.py","position":8,"original_position":8,"commit_id":"554094d1354e5f1e9f0de532d1b3d51e547eae68","original_commit_id":"554094d1354e5f1e9f0de532d1b3d51e547eae68","user":{"login":"ktbarrett","id":22162772,"node_id":"MDQ6VXNlcjIyMTYyNzcy","avatar_url":"https://avatars1.githubusercontent.com/u/22162772?v=4","gravatar_id":"","url":"https://api.github.com/users/ktbarrett","html_url":"https://github.com/ktbarrett","followers_url":"https://api.github.com/users/ktbarrett/followers","following_url":"https://api.github.com/users/ktbarrett/following{/other_user}","gists_url":"https://api.github.com/users/ktbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbarrett/subscriptions","organizations_url":"https://api.github.com/users/ktbarrett/orgs","repos_url":"https://api.github.com/users/ktbarrett/repos","events_url":"https://api.github.com/users/ktbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/ktbarrett/received_events","type":"User","site_admin":false},"body":"Tries loading user code from a known location. Requires no more environment variables. User required to add the correct path to their PYTHONPATH. The `cocotb_custom` namespace can be reserved for future use in the project for user customization points. This parallels the consensus of `cocotb_ext` or `cocotbext` for the naming of the cocotb extension module namespace.","created_at":"2019-12-05T05:17:04Z","updated_at":"2019-12-05T05:17:15Z","html_url":"https://github.com/cocotb/cocotb/pull/1230#discussion_r354114275","pull_request_url":"https://api.github.com/repos/cocotb/cocotb/pulls/1230","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/comments/354114275"},"html":{"href":"https://github.com/cocotb/cocotb/pull/1230#discussion_r354114275"},"pull_request":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/1230"}}},"pull_request":{"url":"https://api.github.com/repos/cocotb/cocotb/pulls/1230","id":349256416,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ5MjU2NDE2","html_url":"https://github.com/cocotb/cocotb/pull/1230","diff_url":"https://github.com/cocotb/cocotb/pull/1230.diff","patch_url":"https://github.com/cocotb/cocotb/pull/1230.patch","issue_url":"https://api.github.com/repos/cocotb/cocotb/issues/1230","number":1230,"state":"open","locked":false,"title":"Allow users to override the cocotb logger","user":{"login":"ktbarrett","id":22162772,"node_id":"MDQ6VXNlcjIyMTYyNzcy","avatar_url":"https://avatars1.githubusercontent.com/u/22162772?v=4","gravatar_id":"","url":"https://api.github.com/users/ktbarrett","html_url":"https://github.com/ktbarrett","followers_url":"https://api.github.com/users/ktbarrett/followers","following_url":"https://api.github.com/users/ktbarrett/following{/other_user}","gists_url":"https://api.github.com/users/ktbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbarrett/subscriptions","organizations_url":"https://api.github.com/users/ktbarrett/orgs","repos_url":"https://api.github.com/users/ktbarrett/repos","events_url":"https://api.github.com/users/ktbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/ktbarrett/received_events","type":"User","site_admin":false},"body":"To ensure logging customization occurs before base loggers are made, logging customization must occur right after cocotb module entry. This provides the infrastructure to allow the user to do logger customization, while preserving current functionality.","created_at":"2019-12-05T05:05:38Z","updated_at":"2019-12-05T05:17:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcd781d92fe7000a3ef8c6dad17d32e55c14c601","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cocotb/cocotb/pulls/1230/commits","review_comments_url":"https://api.github.com/repos/cocotb/cocotb/pulls/1230/comments","review_comment_url":"https://api.github.com/repos/cocotb/cocotb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocotb/cocotb/issues/1230/comments","statuses_url":"https://api.github.com/repos/cocotb/cocotb/statuses/554094d1354e5f1e9f0de532d1b3d51e547eae68","head":{"label":"ktbarrett:logging_customization","ref":"logging_customization","sha":"554094d1354e5f1e9f0de532d1b3d51e547eae68","user":{"login":"ktbarrett","id":22162772,"node_id":"MDQ6VXNlcjIyMTYyNzcy","avatar_url":"https://avatars1.githubusercontent.com/u/22162772?v=4","gravatar_id":"","url":"https://api.github.com/users/ktbarrett","html_url":"https://github.com/ktbarrett","followers_url":"https://api.github.com/users/ktbarrett/followers","following_url":"https://api.github.com/users/ktbarrett/following{/other_user}","gists_url":"https://api.github.com/users/ktbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbarrett/subscriptions","organizations_url":"https://api.github.com/users/ktbarrett/orgs","repos_url":"https://api.github.com/users/ktbarrett/repos","events_url":"https://api.github.com/users/ktbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/ktbarrett/received_events","type":"User","site_admin":false},"repo":{"id":184945687,"node_id":"MDEwOlJlcG9zaXRvcnkxODQ5NDU2ODc=","name":"cocotb","full_name":"ktbarrett/cocotb","private":false,"owner":{"login":"ktbarrett","id":22162772,"node_id":"MDQ6VXNlcjIyMTYyNzcy","avatar_url":"https://avatars1.githubusercontent.com/u/22162772?v=4","gravatar_id":"","url":"https://api.github.com/users/ktbarrett","html_url":"https://github.com/ktbarrett","followers_url":"https://api.github.com/users/ktbarrett/followers","following_url":"https://api.github.com/users/ktbarrett/following{/other_user}","gists_url":"https://api.github.com/users/ktbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbarrett/subscriptions","organizations_url":"https://api.github.com/users/ktbarrett/orgs","repos_url":"https://api.github.com/users/ktbarrett/repos","events_url":"https://api.github.com/users/ktbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/ktbarrett/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ktbarrett/cocotb","description":"Coroutine Co-simulation Test Bench ","fork":true,"url":"https://api.github.com/repos/ktbarrett/cocotb","forks_url":"https://api.github.com/repos/ktbarrett/cocotb/forks","keys_url":"https://api.github.com/repos/ktbarrett/cocotb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktbarrett/cocotb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktbarrett/cocotb/teams","hooks_url":"https://api.github.com/repos/ktbarrett/cocotb/hooks","issue_events_url":"https://api.github.com/repos/ktbarrett/cocotb/issues/events{/number}","events_url":"https://api.github.com/repos/ktbarrett/cocotb/events","assignees_url":"https://api.github.com/repos/ktbarrett/cocotb/assignees{/user}","branches_url":"https://api.github.com/repos/ktbarrett/cocotb/branches{/branch}","tags_url":"https://api.github.com/repos/ktbarrett/cocotb/tags","blobs_url":"https://api.github.com/repos/ktbarrett/cocotb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktbarrett/cocotb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktbarrett/cocotb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktbarrett/cocotb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktbarrett/cocotb/statuses/{sha}","languages_url":"https://api.github.com/repos/ktbarrett/cocotb/languages","stargazers_url":"https://api.github.com/repos/ktbarrett/cocotb/stargazers","contributors_url":"https://api.github.com/repos/ktbarrett/cocotb/contributors","subscribers_url":"https://api.github.com/repos/ktbarrett/cocotb/subscribers","subscription_url":"https://api.github.com/repos/ktbarrett/cocotb/subscription","commits_url":"https://api.github.com/repos/ktbarrett/cocotb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktbarrett/cocotb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktbarrett/cocotb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktbarrett/cocotb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktbarrett/cocotb/contents/{+path}","compare_url":"https://api.github.com/repos/ktbarrett/cocotb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktbarrett/cocotb/merges","archive_url":"https://api.github.com/repos/ktbarrett/cocotb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktbarrett/cocotb/downloads","issues_url":"https://api.github.com/repos/ktbarrett/cocotb/issues{/number}","pulls_url":"https://api.github.com/repos/ktbarrett/cocotb/pulls{/number}","milestones_url":"https://api.github.com/repos/ktbarrett/cocotb/milestones{/number}","notifications_url":"https://api.github.com/repos/ktbarrett/cocotb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktbarrett/cocotb/labels{/name}","releases_url":"https://api.github.com/repos/ktbarrett/cocotb/releases{/id}","deployments_url":"https://api.github.com/repos/ktbarrett/cocotb/deployments","created_at":"2019-05-04T21:24:01Z","updated_at":"2019-12-03T04:47:13Z","pushed_at":"2019-12-05T05:08:44Z","git_url":"git://github.com/ktbarrett/cocotb.git","ssh_url":"git@github.com:ktbarrett/cocotb.git","clone_url":"https://github.com/ktbarrett/cocotb.git","svn_url":"https://github.com/ktbarrett/cocotb","homepage":null,"size":4171,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cocotb:master","ref":"master","sha":"17ce4e51da43b6d2d1b5834d629374ed5535a8d8","user":{"login":"cocotb","id":48655315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NjU1MzE1","avatar_url":"https://avatars2.githubusercontent.com/u/48655315?v=4","gravatar_id":"","url":"https://api.github.com/users/cocotb","html_url":"https://github.com/cocotb","followers_url":"https://api.github.com/users/cocotb/followers","following_url":"https://api.github.com/users/cocotb/following{/other_user}","gists_url":"https://api.github.com/users/cocotb/gists{/gist_id}","starred_url":"https://api.github.com/users/cocotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocotb/subscriptions","organizations_url":"https://api.github.com/users/cocotb/orgs","repos_url":"https://api.github.com/users/cocotb/repos","events_url":"https://api.github.com/users/cocotb/events{/privacy}","received_events_url":"https://api.github.com/users/cocotb/received_events","type":"Organization","site_admin":false},"repo":{"id":10651005,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY1MTAwNQ==","name":"cocotb","full_name":"cocotb/cocotb","private":false,"owner":{"login":"cocotb","id":48655315,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NjU1MzE1","avatar_url":"https://avatars2.githubusercontent.com/u/48655315?v=4","gravatar_id":"","url":"https://api.github.com/users/cocotb","html_url":"https://github.com/cocotb","followers_url":"https://api.github.com/users/cocotb/followers","following_url":"https://api.github.com/users/cocotb/following{/other_user}","gists_url":"https://api.github.com/users/cocotb/gists{/gist_id}","starred_url":"https://api.github.com/users/cocotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocotb/subscriptions","organizations_url":"https://api.github.com/users/cocotb/orgs","repos_url":"https://api.github.com/users/cocotb/repos","events_url":"https://api.github.com/users/cocotb/events{/privacy}","received_events_url":"https://api.github.com/users/cocotb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cocotb/cocotb","description":"Coroutine Co-simulation Test Bench ","fork":false,"url":"https://api.github.com/repos/cocotb/cocotb","forks_url":"https://api.github.com/repos/cocotb/cocotb/forks","keys_url":"https://api.github.com/repos/cocotb/cocotb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocotb/cocotb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocotb/cocotb/teams","hooks_url":"https://api.github.com/repos/cocotb/cocotb/hooks","issue_events_url":"https://api.github.com/repos/cocotb/cocotb/issues/events{/number}","events_url":"https://api.github.com/repos/cocotb/cocotb/events","assignees_url":"https://api.github.com/repos/cocotb/cocotb/assignees{/user}","branches_url":"https://api.github.com/repos/cocotb/cocotb/branches{/branch}","tags_url":"https://api.github.com/repos/cocotb/cocotb/tags","blobs_url":"https://api.github.com/repos/cocotb/cocotb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocotb/cocotb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocotb/cocotb/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocotb/cocotb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocotb/cocotb/statuses/{sha}","languages_url":"https://api.github.com/repos/cocotb/cocotb/languages","stargazers_url":"https://api.github.com/repos/cocotb/cocotb/stargazers","contributors_url":"https://api.github.com/repos/cocotb/cocotb/contributors","subscribers_url":"https://api.github.com/repos/cocotb/cocotb/subscribers","subscription_url":"https://api.github.com/repos/cocotb/cocotb/subscription","commits_url":"https://api.github.com/repos/cocotb/cocotb/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocotb/cocotb/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocotb/cocotb/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocotb/cocotb/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocotb/cocotb/contents/{+path}","compare_url":"https://api.github.com/repos/cocotb/cocotb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocotb/cocotb/merges","archive_url":"https://api.github.com/repos/cocotb/cocotb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocotb/cocotb/downloads","issues_url":"https://api.github.com/repos/cocotb/cocotb/issues{/number}","pulls_url":"https://api.github.com/repos/cocotb/cocotb/pulls{/number}","milestones_url":"https://api.github.com/repos/cocotb/cocotb/milestones{/number}","notifications_url":"https://api.github.com/repos/cocotb/cocotb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocotb/cocotb/labels{/name}","releases_url":"https://api.github.com/repos/cocotb/cocotb/releases{/id}","deployments_url":"https://api.github.com/repos/cocotb/cocotb/deployments","created_at":"2013-06-12T20:07:15Z","updated_at":"2019-11-26T01:03:26Z","pushed_at":"2019-12-05T05:08:45Z","git_url":"git://github.com/cocotb/cocotb.git","ssh_url":"git@github.com:cocotb/cocotb.git","clone_url":"https://github.com/cocotb/cocotb.git","svn_url":"https://github.com/cocotb/cocotb","homepage":null,"size":4188,"stargazers_count":443,"watchers_count":443,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":186,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":268,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":186,"open_issues":268,"watchers":443,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/1230"},"html":{"href":"https://github.com/cocotb/cocotb/pull/1230"},"issue":{"href":"https://api.github.com/repos/cocotb/cocotb/issues/1230"},"comments":{"href":"https://api.github.com/repos/cocotb/cocotb/issues/1230/comments"},"review_comments":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/1230/comments"},"review_comment":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocotb/cocotb/pulls/1230/commits"},"statuses":{"href":"https://api.github.com/repos/cocotb/cocotb/statuses/554094d1354e5f1e9f0de532d1b3d51e547eae68"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ktbarrett"}}