{"action":"created","comment":{"url":"https://api.github.com/repos/nitlang/nit/pulls/comments/46161292","id":46161292,"diff_hunk":"@@ -0,0 +1,58 @@\n+# This file is part of NIT ( http://www.nitlanguage.org ).\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# logs requests\n+module logging","path":"lib/nitcorn/logging.nit","position":16,"original_position":16,"commit_id":"e1ef7ba14096129e8a723387ad09b5899ed37d19","original_commit_id":"e1ef7ba14096129e8a723387ad09b5899ed37d19","user":{"login":"xymus","id":208057,"avatar_url":"https://avatars.githubusercontent.com/u/208057?v=3","gravatar_id":"","url":"https://api.github.com/users/xymus","html_url":"https://github.com/xymus","followers_url":"https://api.github.com/users/xymus/followers","following_url":"https://api.github.com/users/xymus/following{/other_user}","gists_url":"https://api.github.com/users/xymus/gists{/gist_id}","starred_url":"https://api.github.com/users/xymus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xymus/subscriptions","organizations_url":"https://api.github.com/users/xymus/orgs","repos_url":"https://api.github.com/users/xymus/repos","events_url":"https://api.github.com/users/xymus/events{/privacy}","received_events_url":"https://api.github.com/users/xymus/received_events","type":"User","site_admin":false},"body":"I would prefer `log` as in `import nitcorn::log`, it's shorter and cleaner.\r\n\r\nSuggestion to improve the doc: `Services inserting a timestamp in all prints and to log each requests`","created_at":"2015-11-30T15:58:33Z","updated_at":"2015-11-30T15:58:33Z","html_url":"https://github.com/nitlang/nit/pull/1869#discussion_r46161292","pull_request_url":"https://api.github.com/repos/nitlang/nit/pulls/1869","_links":{"self":{"href":"https://api.github.com/repos/nitlang/nit/pulls/comments/46161292"},"html":{"href":"https://github.com/nitlang/nit/pull/1869#discussion_r46161292"},"pull_request":{"href":"https://api.github.com/repos/nitlang/nit/pulls/1869"}}},"pull_request":{"url":"https://api.github.com/repos/nitlang/nit/pulls/1869","id":52073823,"html_url":"https://github.com/nitlang/nit/pull/1869","diff_url":"https://github.com/nitlang/nit/pull/1869.diff","patch_url":"https://github.com/nitlang/nit/pull/1869.patch","issue_url":"https://api.github.com/repos/nitlang/nit/issues/1869","number":1869,"state":"open","locked":false,"title":"Adds a module for logging requests","user":{"login":"BlackMinou","id":6372714,"avatar_url":"https://avatars.githubusercontent.com/u/6372714?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackMinou","html_url":"https://github.com/BlackMinou","followers_url":"https://api.github.com/users/BlackMinou/followers","following_url":"https://api.github.com/users/BlackMinou/following{/other_user}","gists_url":"https://api.github.com/users/BlackMinou/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackMinou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackMinou/subscriptions","organizations_url":"https://api.github.com/users/BlackMinou/orgs","repos_url":"https://api.github.com/users/BlackMinou/repos","events_url":"https://api.github.com/users/BlackMinou/events{/privacy}","received_events_url":"https://api.github.com/users/BlackMinou/received_events","type":"User","site_admin":false},"body":"Title pretty much says it all","created_at":"2015-11-29T23:08:54Z","updated_at":"2015-11-30T15:58:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2daf6c679e945264a3987651ff2f83f78ad616f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nitlang/nit/pulls/1869/commits","review_comments_url":"https://api.github.com/repos/nitlang/nit/pulls/1869/comments","review_comment_url":"https://api.github.com/repos/nitlang/nit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nitlang/nit/issues/1869/comments","statuses_url":"https://api.github.com/repos/nitlang/nit/statuses/e1ef7ba14096129e8a723387ad09b5899ed37d19","head":{"label":"BlackMinou:nitcorn","ref":"nitcorn","sha":"e1ef7ba14096129e8a723387ad09b5899ed37d19","user":{"login":"BlackMinou","id":6372714,"avatar_url":"https://avatars.githubusercontent.com/u/6372714?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackMinou","html_url":"https://github.com/BlackMinou","followers_url":"https://api.github.com/users/BlackMinou/followers","following_url":"https://api.github.com/users/BlackMinou/following{/other_user}","gists_url":"https://api.github.com/users/BlackMinou/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackMinou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackMinou/subscriptions","organizations_url":"https://api.github.com/users/BlackMinou/orgs","repos_url":"https://api.github.com/users/BlackMinou/repos","events_url":"https://api.github.com/users/BlackMinou/events{/privacy}","received_events_url":"https://api.github.com/users/BlackMinou/received_events","type":"User","site_admin":false},"repo":{"id":15811444,"name":"nit","full_name":"BlackMinou/nit","owner":{"login":"BlackMinou","id":6372714,"avatar_url":"https://avatars.githubusercontent.com/u/6372714?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackMinou","html_url":"https://github.com/BlackMinou","followers_url":"https://api.github.com/users/BlackMinou/followers","following_url":"https://api.github.com/users/BlackMinou/following{/other_user}","gists_url":"https://api.github.com/users/BlackMinou/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackMinou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackMinou/subscriptions","organizations_url":"https://api.github.com/users/BlackMinou/orgs","repos_url":"https://api.github.com/users/BlackMinou/repos","events_url":"https://api.github.com/users/BlackMinou/events{/privacy}","received_events_url":"https://api.github.com/users/BlackMinou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlackMinou/nit","description":"Nit language","fork":true,"url":"https://api.github.com/repos/BlackMinou/nit","forks_url":"https://api.github.com/repos/BlackMinou/nit/forks","keys_url":"https://api.github.com/repos/BlackMinou/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlackMinou/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlackMinou/nit/teams","hooks_url":"https://api.github.com/repos/BlackMinou/nit/hooks","issue_events_url":"https://api.github.com/repos/BlackMinou/nit/issues/events{/number}","events_url":"https://api.github.com/repos/BlackMinou/nit/events","assignees_url":"https://api.github.com/repos/BlackMinou/nit/assignees{/user}","branches_url":"https://api.github.com/repos/BlackMinou/nit/branches{/branch}","tags_url":"https://api.github.com/repos/BlackMinou/nit/tags","blobs_url":"https://api.github.com/repos/BlackMinou/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlackMinou/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlackMinou/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlackMinou/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlackMinou/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/BlackMinou/nit/languages","stargazers_url":"https://api.github.com/repos/BlackMinou/nit/stargazers","contributors_url":"https://api.github.com/repos/BlackMinou/nit/contributors","subscribers_url":"https://api.github.com/repos/BlackMinou/nit/subscribers","subscription_url":"https://api.github.com/repos/BlackMinou/nit/subscription","commits_url":"https://api.github.com/repos/BlackMinou/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlackMinou/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlackMinou/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlackMinou/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlackMinou/nit/contents/{+path}","compare_url":"https://api.github.com/repos/BlackMinou/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlackMinou/nit/merges","archive_url":"https://api.github.com/repos/BlackMinou/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlackMinou/nit/downloads","issues_url":"https://api.github.com/repos/BlackMinou/nit/issues{/number}","pulls_url":"https://api.github.com/repos/BlackMinou/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/BlackMinou/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/BlackMinou/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlackMinou/nit/labels{/name}","releases_url":"https://api.github.com/repos/BlackMinou/nit/releases{/id}","created_at":"2014-01-10T22:19:34Z","updated_at":"2015-04-04T22:26:22Z","pushed_at":"2015-11-29T23:46:38Z","git_url":"git://github.com/BlackMinou/nit.git","ssh_url":"git@github.com:BlackMinou/nit.git","clone_url":"https://github.com/BlackMinou/nit.git","svn_url":"https://github.com/BlackMinou/nit","homepage":"http://nitlanguage.org","size":72124,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"nitlang:master","ref":"master","sha":"f42f558b12f76550da6a06359ba944a88a7481ab","user":{"login":"nitlang","id":5420298,"avatar_url":"https://avatars.githubusercontent.com/u/5420298?v=3","gravatar_id":"","url":"https://api.github.com/users/nitlang","html_url":"https://github.com/nitlang","followers_url":"https://api.github.com/users/nitlang/followers","following_url":"https://api.github.com/users/nitlang/following{/other_user}","gists_url":"https://api.github.com/users/nitlang/gists{/gist_id}","starred_url":"https://api.github.com/users/nitlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitlang/subscriptions","organizations_url":"https://api.github.com/users/nitlang/orgs","repos_url":"https://api.github.com/users/nitlang/repos","events_url":"https://api.github.com/users/nitlang/events{/privacy}","received_events_url":"https://api.github.com/users/nitlang/received_events","type":"Organization","site_admin":false},"repo":{"id":328597,"name":"nit","full_name":"nitlang/nit","owner":{"login":"nitlang","id":5420298,"avatar_url":"https://avatars.githubusercontent.com/u/5420298?v=3","gravatar_id":"","url":"https://api.github.com/users/nitlang","html_url":"https://github.com/nitlang","followers_url":"https://api.github.com/users/nitlang/followers","following_url":"https://api.github.com/users/nitlang/following{/other_user}","gists_url":"https://api.github.com/users/nitlang/gists{/gist_id}","starred_url":"https://api.github.com/users/nitlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitlang/subscriptions","organizations_url":"https://api.github.com/users/nitlang/orgs","repos_url":"https://api.github.com/users/nitlang/repos","events_url":"https://api.github.com/users/nitlang/events{/privacy}","received_events_url":"https://api.github.com/users/nitlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nitlang/nit","description":"Nit language","fork":false,"url":"https://api.github.com/repos/nitlang/nit","forks_url":"https://api.github.com/repos/nitlang/nit/forks","keys_url":"https://api.github.com/repos/nitlang/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nitlang/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nitlang/nit/teams","hooks_url":"https://api.github.com/repos/nitlang/nit/hooks","issue_events_url":"https://api.github.com/repos/nitlang/nit/issues/events{/number}","events_url":"https://api.github.com/repos/nitlang/nit/events","assignees_url":"https://api.github.com/repos/nitlang/nit/assignees{/user}","branches_url":"https://api.github.com/repos/nitlang/nit/branches{/branch}","tags_url":"https://api.github.com/repos/nitlang/nit/tags","blobs_url":"https://api.github.com/repos/nitlang/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nitlang/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nitlang/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nitlang/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nitlang/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/nitlang/nit/languages","stargazers_url":"https://api.github.com/repos/nitlang/nit/stargazers","contributors_url":"https://api.github.com/repos/nitlang/nit/contributors","subscribers_url":"https://api.github.com/repos/nitlang/nit/subscribers","subscription_url":"https://api.github.com/repos/nitlang/nit/subscription","commits_url":"https://api.github.com/repos/nitlang/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nitlang/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nitlang/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nitlang/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nitlang/nit/contents/{+path}","compare_url":"https://api.github.com/repos/nitlang/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nitlang/nit/merges","archive_url":"https://api.github.com/repos/nitlang/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nitlang/nit/downloads","issues_url":"https://api.github.com/repos/nitlang/nit/issues{/number}","pulls_url":"https://api.github.com/repos/nitlang/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/nitlang/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/nitlang/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nitlang/nit/labels{/name}","releases_url":"https://api.github.com/repos/nitlang/nit/releases{/id}","created_at":"2009-10-06T15:03:00Z","updated_at":"2015-11-28T18:08:55Z","pushed_at":"2015-11-30T15:14:12Z","git_url":"git://github.com/nitlang/nit.git","ssh_url":"git@github.com:nitlang/nit.git","clone_url":"https://github.com/nitlang/nit.git","svn_url":"https://github.com/nitlang/nit","homepage":"http://nitlanguage.org","size":91753,"stargazers_count":81,"watchers_count":81,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":149,"forks":46,"open_issues":149,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nitlang/nit/pulls/1869"},"html":{"href":"https://github.com/nitlang/nit/pull/1869"},"issue":{"href":"https://api.github.com/repos/nitlang/nit/issues/1869"},"comments":{"href":"https://api.github.com/repos/nitlang/nit/issues/1869/comments"},"review_comments":{"href":"https://api.github.com/repos/nitlang/nit/pulls/1869/comments"},"review_comment":{"href":"https://api.github.com/repos/nitlang/nit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nitlang/nit/pulls/1869/commits"},"statuses":{"href":"https://api.github.com/repos/nitlang/nit/statuses/e1ef7ba14096129e8a723387ad09b5899ed37d19"}}}}