{"action":"created","comment":{"url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/comments/56904770","id":56904770,"diff_hunk":"@@ -28,8 +30,15 @@ def getLoggers(cls):\n     #   \\param *args \\type{list} List of variables to be added to the message.\n     @classmethod\n     def log(cls, log_type, message, *args):\n+        function = inspect.currentframe().f_back.f_code\n+        filename = function.co_filename\n+        for path in sys.path:\n+            if filename.startswith(path):\n+                filename = filename.replace(path, \"<PATH>\")","path":"UM/Logger.py","position":18,"original_position":18,"commit_id":"2d096383f6de45e4e09576aa0ed18a9c95566be4","original_commit_id":"2d096383f6de45e4e09576aa0ed18a9c95566be4","user":{"login":"fieldOfView","id":143551,"avatar_url":"https://avatars.githubusercontent.com/u/143551?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldOfView","html_url":"https://github.com/fieldOfView","followers_url":"https://api.github.com/users/fieldOfView/followers","following_url":"https://api.github.com/users/fieldOfView/following{/other_user}","gists_url":"https://api.github.com/users/fieldOfView/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldOfView/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldOfView/subscriptions","organizations_url":"https://api.github.com/users/fieldOfView/orgs","repos_url":"https://api.github.com/users/fieldOfView/repos","events_url":"https://api.github.com/users/fieldOfView/events{/privacy}","received_events_url":"https://api.github.com/users/fieldOfView/received_events","type":"User","site_admin":false},"body":"Another option would be to remove the path entirely (so you end up with /UM/Application.py)","created_at":"2016-03-21T21:55:53Z","updated_at":"2016-03-21T21:55:53Z","html_url":"https://github.com/Ultimaker/Uranium/pull/120#discussion_r56904770","pull_request_url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/comments/56904770"},"html":{"href":"https://github.com/Ultimaker/Uranium/pull/120#discussion_r56904770"},"pull_request":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120","id":63385644,"html_url":"https://github.com/Ultimaker/Uranium/pull/120","diff_url":"https://github.com/Ultimaker/Uranium/pull/120.diff","patch_url":"https://github.com/Ultimaker/Uranium/pull/120.patch","issue_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/120","number":120,"state":"open","locked":false,"title":"[master] tracing for logger","user":{"login":"thopiekar","id":1847437,"avatar_url":"https://avatars.githubusercontent.com/u/1847437?v=3","gravatar_id":"","url":"https://api.github.com/users/thopiekar","html_url":"https://github.com/thopiekar","followers_url":"https://api.github.com/users/thopiekar/followers","following_url":"https://api.github.com/users/thopiekar/following{/other_user}","gists_url":"https://api.github.com/users/thopiekar/gists{/gist_id}","starred_url":"https://api.github.com/users/thopiekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thopiekar/subscriptions","organizations_url":"https://api.github.com/users/thopiekar/orgs","repos_url":"https://api.github.com/users/thopiekar/repos","events_url":"https://api.github.com/users/thopiekar/events{/privacy}","received_events_url":"https://api.github.com/users/thopiekar/received_events","type":"User","site_admin":false},"body":"This will add logger outputs like:\r\n\r\n```\r\n2016-03-18 15:51:06,332 - INFO - <PATH>/UM/PluginRegistry.py (loadPlugin [61]): Loaded plugin ChangeLogPlugin\r\n2016-03-18 15:51:06,334 - INFO - <PATH>/UM/Qt/QtApplication.py (__init__ [36]): Command line arguments: {'file': [], 'disable-textures': False, 'external-backend': False, 'debug-mode': False}\r\n2016-03-18 15:51:06,481 - WARNING - <PATH>/UM/Settings/MachineManager.py (saveVisibility [707]): No active machine found when trying to save setting visibility\r\n2016-03-18 15:51:06,588 - WARNING - <PATH>/UM/Settings/Profile.py (setSettingValue [148]): Tried to set value of non-user setting platform_adhesion\r\n2016-03-18 15:51:06,590 - WARNING - <PATH>/UM/Settings/Profile.py (setSettingValue [148]): Tried to set value of non-user setting platform_adhesion\r\n2016-03-18 15:51:06,613 - INFO - <PATH>/UM/Backend/Backend.py (startEngine [45]): Started engine process: /usr/bin/CuraEngine\r\n2016-03-18 15:51:06,653 - DEBUG - <PATH>/UM/Backend/Backend.py (_onSocketStateChanged [122]): Backend connected on port 49674\r\n2016-03-18 15:51:06,654 - DEBUG - <PATH>/UM/Controller.py (setActiveView [83]): Setting active view to SolidView\r\n```","created_at":"2016-03-18T14:52:10Z","updated_at":"2016-03-21T21:55:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b08ab21cfcf91e051266e891ddce9b2089675742","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120/commits","review_comments_url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120/comments","review_comment_url":"https://api.github.com/repos/Ultimaker/Uranium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/120/comments","statuses_url":"https://api.github.com/repos/Ultimaker/Uranium/statuses/2d096383f6de45e4e09576aa0ed18a9c95566be4","head":{"label":"thopiekar:master-tracing-for-logger","ref":"master-tracing-for-logger","sha":"2d096383f6de45e4e09576aa0ed18a9c95566be4","user":{"login":"thopiekar","id":1847437,"avatar_url":"https://avatars.githubusercontent.com/u/1847437?v=3","gravatar_id":"","url":"https://api.github.com/users/thopiekar","html_url":"https://github.com/thopiekar","followers_url":"https://api.github.com/users/thopiekar/followers","following_url":"https://api.github.com/users/thopiekar/following{/other_user}","gists_url":"https://api.github.com/users/thopiekar/gists{/gist_id}","starred_url":"https://api.github.com/users/thopiekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thopiekar/subscriptions","organizations_url":"https://api.github.com/users/thopiekar/orgs","repos_url":"https://api.github.com/users/thopiekar/repos","events_url":"https://api.github.com/users/thopiekar/events{/privacy}","received_events_url":"https://api.github.com/users/thopiekar/received_events","type":"User","site_admin":false},"repo":{"id":48501970,"name":"Uranium","full_name":"thopiekar/Uranium","owner":{"login":"thopiekar","id":1847437,"avatar_url":"https://avatars.githubusercontent.com/u/1847437?v=3","gravatar_id":"","url":"https://api.github.com/users/thopiekar","html_url":"https://github.com/thopiekar","followers_url":"https://api.github.com/users/thopiekar/followers","following_url":"https://api.github.com/users/thopiekar/following{/other_user}","gists_url":"https://api.github.com/users/thopiekar/gists{/gist_id}","starred_url":"https://api.github.com/users/thopiekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thopiekar/subscriptions","organizations_url":"https://api.github.com/users/thopiekar/orgs","repos_url":"https://api.github.com/users/thopiekar/repos","events_url":"https://api.github.com/users/thopiekar/events{/privacy}","received_events_url":"https://api.github.com/users/thopiekar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thopiekar/Uranium","description":" A Python framework for building Desktop applications.","fork":true,"url":"https://api.github.com/repos/thopiekar/Uranium","forks_url":"https://api.github.com/repos/thopiekar/Uranium/forks","keys_url":"https://api.github.com/repos/thopiekar/Uranium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thopiekar/Uranium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thopiekar/Uranium/teams","hooks_url":"https://api.github.com/repos/thopiekar/Uranium/hooks","issue_events_url":"https://api.github.com/repos/thopiekar/Uranium/issues/events{/number}","events_url":"https://api.github.com/repos/thopiekar/Uranium/events","assignees_url":"https://api.github.com/repos/thopiekar/Uranium/assignees{/user}","branches_url":"https://api.github.com/repos/thopiekar/Uranium/branches{/branch}","tags_url":"https://api.github.com/repos/thopiekar/Uranium/tags","blobs_url":"https://api.github.com/repos/thopiekar/Uranium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thopiekar/Uranium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thopiekar/Uranium/git/refs{/sha}","trees_url":"https://api.github.com/repos/thopiekar/Uranium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thopiekar/Uranium/statuses/{sha}","languages_url":"https://api.github.com/repos/thopiekar/Uranium/languages","stargazers_url":"https://api.github.com/repos/thopiekar/Uranium/stargazers","contributors_url":"https://api.github.com/repos/thopiekar/Uranium/contributors","subscribers_url":"https://api.github.com/repos/thopiekar/Uranium/subscribers","subscription_url":"https://api.github.com/repos/thopiekar/Uranium/subscription","commits_url":"https://api.github.com/repos/thopiekar/Uranium/commits{/sha}","git_commits_url":"https://api.github.com/repos/thopiekar/Uranium/git/commits{/sha}","comments_url":"https://api.github.com/repos/thopiekar/Uranium/comments{/number}","issue_comment_url":"https://api.github.com/repos/thopiekar/Uranium/issues/comments{/number}","contents_url":"https://api.github.com/repos/thopiekar/Uranium/contents/{+path}","compare_url":"https://api.github.com/repos/thopiekar/Uranium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thopiekar/Uranium/merges","archive_url":"https://api.github.com/repos/thopiekar/Uranium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thopiekar/Uranium/downloads","issues_url":"https://api.github.com/repos/thopiekar/Uranium/issues{/number}","pulls_url":"https://api.github.com/repos/thopiekar/Uranium/pulls{/number}","milestones_url":"https://api.github.com/repos/thopiekar/Uranium/milestones{/number}","notifications_url":"https://api.github.com/repos/thopiekar/Uranium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thopiekar/Uranium/labels{/name}","releases_url":"https://api.github.com/repos/thopiekar/Uranium/releases{/id}","deployments_url":"https://api.github.com/repos/thopiekar/Uranium/deployments","created_at":"2015-12-23T17:10:07Z","updated_at":"2015-12-23T17:10:09Z","pushed_at":"2016-03-21T11:04:17Z","git_url":"git://github.com/thopiekar/Uranium.git","ssh_url":"git@github.com:thopiekar/Uranium.git","clone_url":"https://github.com/thopiekar/Uranium.git","svn_url":"https://github.com/thopiekar/Uranium","homepage":"","size":24828,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ultimaker:master","ref":"master","sha":"9619c7c9ebe13600a92ecac7b5507babf52d60ae","user":{"login":"Ultimaker","id":499557,"avatar_url":"https://avatars.githubusercontent.com/u/499557?v=3","gravatar_id":"","url":"https://api.github.com/users/Ultimaker","html_url":"https://github.com/Ultimaker","followers_url":"https://api.github.com/users/Ultimaker/followers","following_url":"https://api.github.com/users/Ultimaker/following{/other_user}","gists_url":"https://api.github.com/users/Ultimaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Ultimaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ultimaker/subscriptions","organizations_url":"https://api.github.com/users/Ultimaker/orgs","repos_url":"https://api.github.com/users/Ultimaker/repos","events_url":"https://api.github.com/users/Ultimaker/events{/privacy}","received_events_url":"https://api.github.com/users/Ultimaker/received_events","type":"Organization","site_admin":false},"repo":{"id":26438422,"name":"Uranium","full_name":"Ultimaker/Uranium","owner":{"login":"Ultimaker","id":499557,"avatar_url":"https://avatars.githubusercontent.com/u/499557?v=3","gravatar_id":"","url":"https://api.github.com/users/Ultimaker","html_url":"https://github.com/Ultimaker","followers_url":"https://api.github.com/users/Ultimaker/followers","following_url":"https://api.github.com/users/Ultimaker/following{/other_user}","gists_url":"https://api.github.com/users/Ultimaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Ultimaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ultimaker/subscriptions","organizations_url":"https://api.github.com/users/Ultimaker/orgs","repos_url":"https://api.github.com/users/Ultimaker/repos","events_url":"https://api.github.com/users/Ultimaker/events{/privacy}","received_events_url":"https://api.github.com/users/Ultimaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ultimaker/Uranium","description":" A Python framework for building Desktop applications.","fork":false,"url":"https://api.github.com/repos/Ultimaker/Uranium","forks_url":"https://api.github.com/repos/Ultimaker/Uranium/forks","keys_url":"https://api.github.com/repos/Ultimaker/Uranium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ultimaker/Uranium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ultimaker/Uranium/teams","hooks_url":"https://api.github.com/repos/Ultimaker/Uranium/hooks","issue_events_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/events{/number}","events_url":"https://api.github.com/repos/Ultimaker/Uranium/events","assignees_url":"https://api.github.com/repos/Ultimaker/Uranium/assignees{/user}","branches_url":"https://api.github.com/repos/Ultimaker/Uranium/branches{/branch}","tags_url":"https://api.github.com/repos/Ultimaker/Uranium/tags","blobs_url":"https://api.github.com/repos/Ultimaker/Uranium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ultimaker/Uranium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ultimaker/Uranium/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ultimaker/Uranium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ultimaker/Uranium/statuses/{sha}","languages_url":"https://api.github.com/repos/Ultimaker/Uranium/languages","stargazers_url":"https://api.github.com/repos/Ultimaker/Uranium/stargazers","contributors_url":"https://api.github.com/repos/Ultimaker/Uranium/contributors","subscribers_url":"https://api.github.com/repos/Ultimaker/Uranium/subscribers","subscription_url":"https://api.github.com/repos/Ultimaker/Uranium/subscription","commits_url":"https://api.github.com/repos/Ultimaker/Uranium/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ultimaker/Uranium/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ultimaker/Uranium/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ultimaker/Uranium/contents/{+path}","compare_url":"https://api.github.com/repos/Ultimaker/Uranium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ultimaker/Uranium/merges","archive_url":"https://api.github.com/repos/Ultimaker/Uranium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ultimaker/Uranium/downloads","issues_url":"https://api.github.com/repos/Ultimaker/Uranium/issues{/number}","pulls_url":"https://api.github.com/repos/Ultimaker/Uranium/pulls{/number}","milestones_url":"https://api.github.com/repos/Ultimaker/Uranium/milestones{/number}","notifications_url":"https://api.github.com/repos/Ultimaker/Uranium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ultimaker/Uranium/labels{/name}","releases_url":"https://api.github.com/repos/Ultimaker/Uranium/releases{/id}","deployments_url":"https://api.github.com/repos/Ultimaker/Uranium/deployments","created_at":"2014-11-10T13:56:28Z","updated_at":"2016-03-04T05:37:15Z","pushed_at":"2016-03-21T15:30:30Z","git_url":"git://github.com/Ultimaker/Uranium.git","ssh_url":"git@github.com:Ultimaker/Uranium.git","clone_url":"https://github.com/Ultimaker/Uranium.git","svn_url":"https://github.com/Ultimaker/Uranium","homepage":"","size":26668,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":22,"forks":18,"open_issues":22,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120"},"html":{"href":"https://github.com/Ultimaker/Uranium/pull/120"},"issue":{"href":"https://api.github.com/repos/Ultimaker/Uranium/issues/120"},"comments":{"href":"https://api.github.com/repos/Ultimaker/Uranium/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ultimaker/Uranium/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/Ultimaker/Uranium/statuses/2d096383f6de45e4e09576aa0ed18a9c95566be4"}}}}