{"action":"created","comment":{"url":"https://api.github.com/repos/qorelanguage/qore/pulls/comments/217641070","pull_request_review_id":155402572,"id":217641070,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzY0MTA3MA==","diff_hunk":"@@ -593,6 +595,24 @@ class Test inherits QUnit::Test {\n         unlink(fn);\n     }\n \n+    testLoggerAppenderStdErr() {\n+        string fn = tmp_location() + DirSep + \"qore_logger_test_15432ewqhkofl.log\";\n+        File f();\n+        f.open2(fn, O_CREAT|O_WRONLY|O_TRUNC);\n+        on_exit unlink(fn);\n+\n+        LoggerAppenderStdErr laso(\"STDERR\", new LoggerLayoutPattern(\"%m\"));\n+        LoggerEvent lle = new LoggerEvent(\"Logger\", \"a\", LoggerLevel::getLevelError(), \"STDTEST\");\n+        stderr.redirect(f);\n+        stderr.setPos(0);\n+        laso.open();\n+        laso.post(lle);\n+        laso.close();\n+        stderr.redirect(stdout);  # TODO: redir back to real stderr, seems it is not possible so redir to stdout to see anything","path":"examples/test/qlib/Logger/Logger.qtest","position":611,"original_position":97,"commit_id":"8d365d71b87a03a103625b3d2b992bda4438af94","original_commit_id":"8d365d71b87a03a103625b3d2b992bda4438af94","user":{"login":"tmandys","id":10338727,"node_id":"MDQ6VXNlcjEwMzM4NzI3","avatar_url":"https://avatars1.githubusercontent.com/u/10338727?v=4","gravatar_id":"","url":"https://api.github.com/users/tmandys","html_url":"https://github.com/tmandys","followers_url":"https://api.github.com/users/tmandys/followers","following_url":"https://api.github.com/users/tmandys/following{/other_user}","gists_url":"https://api.github.com/users/tmandys/gists{/gist_id}","starred_url":"https://api.github.com/users/tmandys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmandys/subscriptions","organizations_url":"https://api.github.com/users/tmandys/orgs","repos_url":"https://api.github.com/users/tmandys/repos","events_url":"https://api.github.com/users/tmandys/events{/privacy}","received_events_url":"https://api.github.com/users/tmandys/received_events","type":"User","site_admin":false},"body":"this is TODO for File::redirect. When implemented some time redirection back to stderr/out we can change also here.","created_at":"2018-09-14T08:42:51Z","updated_at":"2018-09-14T08:42:51Z","html_url":"https://github.com/qorelanguage/qore/pull/2910#discussion_r217641070","pull_request_url":"https://api.github.com/repos/qorelanguage/qore/pulls/2910","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/comments/217641070"},"html":{"href":"https://github.com/qorelanguage/qore/pull/2910#discussion_r217641070"},"pull_request":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/2910"}},"in_reply_to_id":216620829},"pull_request":{"url":"https://api.github.com/repos/qorelanguage/qore/pulls/2910","id":203173480,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMTczNDgw","html_url":"https://github.com/qorelanguage/qore/pull/2910","diff_url":"https://github.com/qorelanguage/qore/pull/2910.diff","patch_url":"https://github.com/qorelanguage/qore/pull/2910.patch","issue_url":"https://api.github.com/repos/qorelanguage/qore/issues/2910","number":2910,"state":"open","locked":false,"title":"Feature/2632 logging api","user":{"login":"tmandys","id":10338727,"node_id":"MDQ6VXNlcjEwMzM4NzI3","avatar_url":"https://avatars1.githubusercontent.com/u/10338727?v=4","gravatar_id":"","url":"https://api.github.com/users/tmandys","html_url":"https://github.com/tmandys","followers_url":"https://api.github.com/users/tmandys/followers","following_url":"https://api.github.com/users/tmandys/following{/other_user}","gists_url":"https://api.github.com/users/tmandys/gists{/gist_id}","starred_url":"https://api.github.com/users/tmandys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmandys/subscriptions","organizations_url":"https://api.github.com/users/tmandys/orgs","repos_url":"https://api.github.com/users/tmandys/repos","events_url":"https://api.github.com/users/tmandys/events{/privacy}","received_events_url":"https://api.github.com/users/tmandys/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-23T10:22:03Z","updated_at":"2018-09-14T08:42:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"951a8f870970084cb2707e41a5f7d457828fda35","assignee":{"login":"sejvlond","id":5747824,"node_id":"MDQ6VXNlcjU3NDc4MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5747824?v=4","gravatar_id":"","url":"https://api.github.com/users/sejvlond","html_url":"https://github.com/sejvlond","followers_url":"https://api.github.com/users/sejvlond/followers","following_url":"https://api.github.com/users/sejvlond/following{/other_user}","gists_url":"https://api.github.com/users/sejvlond/gists{/gist_id}","starred_url":"https://api.github.com/users/sejvlond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sejvlond/subscriptions","organizations_url":"https://api.github.com/users/sejvlond/orgs","repos_url":"https://api.github.com/users/sejvlond/repos","events_url":"https://api.github.com/users/sejvlond/events{/privacy}","received_events_url":"https://api.github.com/users/sejvlond/received_events","type":"User","site_admin":false},"assignees":[{"login":"sejvlond","id":5747824,"node_id":"MDQ6VXNlcjU3NDc4MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5747824?v=4","gravatar_id":"","url":"https://api.github.com/users/sejvlond","html_url":"https://github.com/sejvlond","followers_url":"https://api.github.com/users/sejvlond/followers","following_url":"https://api.github.com/users/sejvlond/following{/other_user}","gists_url":"https://api.github.com/users/sejvlond/gists{/gist_id}","starred_url":"https://api.github.com/users/sejvlond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sejvlond/subscriptions","organizations_url":"https://api.github.com/users/sejvlond/orgs","repos_url":"https://api.github.com/users/sejvlond/repos","events_url":"https://api.github.com/users/sejvlond/events{/privacy}","received_events_url":"https://api.github.com/users/sejvlond/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/qorelanguage/qore/pulls/2910/commits","review_comments_url":"https://api.github.com/repos/qorelanguage/qore/pulls/2910/comments","review_comment_url":"https://api.github.com/repos/qorelanguage/qore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qorelanguage/qore/issues/2910/comments","statuses_url":"https://api.github.com/repos/qorelanguage/qore/statuses/8d365d71b87a03a103625b3d2b992bda4438af94","head":{"label":"qorelanguage:feature/2632_logging_api","ref":"feature/2632_logging_api","sha":"8d365d71b87a03a103625b3d2b992bda4438af94","user":{"login":"qorelanguage","id":13414799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDE0Nzk5","avatar_url":"https://avatars2.githubusercontent.com/u/13414799?v=4","gravatar_id":"","url":"https://api.github.com/users/qorelanguage","html_url":"https://github.com/qorelanguage","followers_url":"https://api.github.com/users/qorelanguage/followers","following_url":"https://api.github.com/users/qorelanguage/following{/other_user}","gists_url":"https://api.github.com/users/qorelanguage/gists{/gist_id}","starred_url":"https://api.github.com/users/qorelanguage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qorelanguage/subscriptions","organizations_url":"https://api.github.com/users/qorelanguage/orgs","repos_url":"https://api.github.com/users/qorelanguage/repos","events_url":"https://api.github.com/users/qorelanguage/events{/privacy}","received_events_url":"https://api.github.com/users/qorelanguage/received_events","type":"Organization","site_admin":false},"repo":{"id":39378616,"node_id":"MDEwOlJlcG9zaXRvcnkzOTM3ODYxNg==","name":"qore","full_name":"qorelanguage/qore","owner":{"login":"qorelanguage","id":13414799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDE0Nzk5","avatar_url":"https://avatars2.githubusercontent.com/u/13414799?v=4","gravatar_id":"","url":"https://api.github.com/users/qorelanguage","html_url":"https://github.com/qorelanguage","followers_url":"https://api.github.com/users/qorelanguage/followers","following_url":"https://api.github.com/users/qorelanguage/following{/other_user}","gists_url":"https://api.github.com/users/qorelanguage/gists{/gist_id}","starred_url":"https://api.github.com/users/qorelanguage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qorelanguage/subscriptions","organizations_url":"https://api.github.com/users/qorelanguage/orgs","repos_url":"https://api.github.com/users/qorelanguage/repos","events_url":"https://api.github.com/users/qorelanguage/events{/privacy}","received_events_url":"https://api.github.com/users/qorelanguage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qorelanguage/qore","description":"Qore Programming Language","fork":false,"url":"https://api.github.com/repos/qorelanguage/qore","forks_url":"https://api.github.com/repos/qorelanguage/qore/forks","keys_url":"https://api.github.com/repos/qorelanguage/qore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qorelanguage/qore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qorelanguage/qore/teams","hooks_url":"https://api.github.com/repos/qorelanguage/qore/hooks","issue_events_url":"https://api.github.com/repos/qorelanguage/qore/issues/events{/number}","events_url":"https://api.github.com/repos/qorelanguage/qore/events","assignees_url":"https://api.github.com/repos/qorelanguage/qore/assignees{/user}","branches_url":"https://api.github.com/repos/qorelanguage/qore/branches{/branch}","tags_url":"https://api.github.com/repos/qorelanguage/qore/tags","blobs_url":"https://api.github.com/repos/qorelanguage/qore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qorelanguage/qore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qorelanguage/qore/git/refs{/sha}","trees_url":"https://api.github.com/repos/qorelanguage/qore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qorelanguage/qore/statuses/{sha}","languages_url":"https://api.github.com/repos/qorelanguage/qore/languages","stargazers_url":"https://api.github.com/repos/qorelanguage/qore/stargazers","contributors_url":"https://api.github.com/repos/qorelanguage/qore/contributors","subscribers_url":"https://api.github.com/repos/qorelanguage/qore/subscribers","subscription_url":"https://api.github.com/repos/qorelanguage/qore/subscription","commits_url":"https://api.github.com/repos/qorelanguage/qore/commits{/sha}","git_commits_url":"https://api.github.com/repos/qorelanguage/qore/git/commits{/sha}","comments_url":"https://api.github.com/repos/qorelanguage/qore/comments{/number}","issue_comment_url":"https://api.github.com/repos/qorelanguage/qore/issues/comments{/number}","contents_url":"https://api.github.com/repos/qorelanguage/qore/contents/{+path}","compare_url":"https://api.github.com/repos/qorelanguage/qore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qorelanguage/qore/merges","archive_url":"https://api.github.com/repos/qorelanguage/qore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qorelanguage/qore/downloads","issues_url":"https://api.github.com/repos/qorelanguage/qore/issues{/number}","pulls_url":"https://api.github.com/repos/qorelanguage/qore/pulls{/number}","milestones_url":"https://api.github.com/repos/qorelanguage/qore/milestones{/number}","notifications_url":"https://api.github.com/repos/qorelanguage/qore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qorelanguage/qore/labels{/name}","releases_url":"https://api.github.com/repos/qorelanguage/qore/releases{/id}","deployments_url":"https://api.github.com/repos/qorelanguage/qore/deployments","created_at":"2015-07-20T10:52:09Z","updated_at":"2018-09-11T06:09:06Z","pushed_at":"2018-09-13T19:41:54Z","git_url":"git://github.com/qorelanguage/qore.git","ssh_url":"git@github.com:qorelanguage/qore.git","clone_url":"https://github.com/qorelanguage/qore.git","svn_url":"https://github.com/qorelanguage/qore","homepage":null,"size":40256,"stargazers_count":18,"watchers_count":18,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":248,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":6,"open_issues":248,"watchers":18,"default_branch":"develop"}},"base":{"label":"qorelanguage:develop","ref":"develop","sha":"5671fedc36ca89f8113ec7d34eef0c562242324b","user":{"login":"qorelanguage","id":13414799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDE0Nzk5","avatar_url":"https://avatars2.githubusercontent.com/u/13414799?v=4","gravatar_id":"","url":"https://api.github.com/users/qorelanguage","html_url":"https://github.com/qorelanguage","followers_url":"https://api.github.com/users/qorelanguage/followers","following_url":"https://api.github.com/users/qorelanguage/following{/other_user}","gists_url":"https://api.github.com/users/qorelanguage/gists{/gist_id}","starred_url":"https://api.github.com/users/qorelanguage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qorelanguage/subscriptions","organizations_url":"https://api.github.com/users/qorelanguage/orgs","repos_url":"https://api.github.com/users/qorelanguage/repos","events_url":"https://api.github.com/users/qorelanguage/events{/privacy}","received_events_url":"https://api.github.com/users/qorelanguage/received_events","type":"Organization","site_admin":false},"repo":{"id":39378616,"node_id":"MDEwOlJlcG9zaXRvcnkzOTM3ODYxNg==","name":"qore","full_name":"qorelanguage/qore","owner":{"login":"qorelanguage","id":13414799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDE0Nzk5","avatar_url":"https://avatars2.githubusercontent.com/u/13414799?v=4","gravatar_id":"","url":"https://api.github.com/users/qorelanguage","html_url":"https://github.com/qorelanguage","followers_url":"https://api.github.com/users/qorelanguage/followers","following_url":"https://api.github.com/users/qorelanguage/following{/other_user}","gists_url":"https://api.github.com/users/qorelanguage/gists{/gist_id}","starred_url":"https://api.github.com/users/qorelanguage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qorelanguage/subscriptions","organizations_url":"https://api.github.com/users/qorelanguage/orgs","repos_url":"https://api.github.com/users/qorelanguage/repos","events_url":"https://api.github.com/users/qorelanguage/events{/privacy}","received_events_url":"https://api.github.com/users/qorelanguage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qorelanguage/qore","description":"Qore Programming Language","fork":false,"url":"https://api.github.com/repos/qorelanguage/qore","forks_url":"https://api.github.com/repos/qorelanguage/qore/forks","keys_url":"https://api.github.com/repos/qorelanguage/qore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qorelanguage/qore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qorelanguage/qore/teams","hooks_url":"https://api.github.com/repos/qorelanguage/qore/hooks","issue_events_url":"https://api.github.com/repos/qorelanguage/qore/issues/events{/number}","events_url":"https://api.github.com/repos/qorelanguage/qore/events","assignees_url":"https://api.github.com/repos/qorelanguage/qore/assignees{/user}","branches_url":"https://api.github.com/repos/qorelanguage/qore/branches{/branch}","tags_url":"https://api.github.com/repos/qorelanguage/qore/tags","blobs_url":"https://api.github.com/repos/qorelanguage/qore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qorelanguage/qore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qorelanguage/qore/git/refs{/sha}","trees_url":"https://api.github.com/repos/qorelanguage/qore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qorelanguage/qore/statuses/{sha}","languages_url":"https://api.github.com/repos/qorelanguage/qore/languages","stargazers_url":"https://api.github.com/repos/qorelanguage/qore/stargazers","contributors_url":"https://api.github.com/repos/qorelanguage/qore/contributors","subscribers_url":"https://api.github.com/repos/qorelanguage/qore/subscribers","subscription_url":"https://api.github.com/repos/qorelanguage/qore/subscription","commits_url":"https://api.github.com/repos/qorelanguage/qore/commits{/sha}","git_commits_url":"https://api.github.com/repos/qorelanguage/qore/git/commits{/sha}","comments_url":"https://api.github.com/repos/qorelanguage/qore/comments{/number}","issue_comment_url":"https://api.github.com/repos/qorelanguage/qore/issues/comments{/number}","contents_url":"https://api.github.com/repos/qorelanguage/qore/contents/{+path}","compare_url":"https://api.github.com/repos/qorelanguage/qore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qorelanguage/qore/merges","archive_url":"https://api.github.com/repos/qorelanguage/qore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qorelanguage/qore/downloads","issues_url":"https://api.github.com/repos/qorelanguage/qore/issues{/number}","pulls_url":"https://api.github.com/repos/qorelanguage/qore/pulls{/number}","milestones_url":"https://api.github.com/repos/qorelanguage/qore/milestones{/number}","notifications_url":"https://api.github.com/repos/qorelanguage/qore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qorelanguage/qore/labels{/name}","releases_url":"https://api.github.com/repos/qorelanguage/qore/releases{/id}","deployments_url":"https://api.github.com/repos/qorelanguage/qore/deployments","created_at":"2015-07-20T10:52:09Z","updated_at":"2018-09-11T06:09:06Z","pushed_at":"2018-09-13T19:41:54Z","git_url":"git://github.com/qorelanguage/qore.git","ssh_url":"git@github.com:qorelanguage/qore.git","clone_url":"https://github.com/qorelanguage/qore.git","svn_url":"https://github.com/qorelanguage/qore","homepage":null,"size":40256,"stargazers_count":18,"watchers_count":18,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":248,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":6,"open_issues":248,"watchers":18,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/2910"},"html":{"href":"https://github.com/qorelanguage/qore/pull/2910"},"issue":{"href":"https://api.github.com/repos/qorelanguage/qore/issues/2910"},"comments":{"href":"https://api.github.com/repos/qorelanguage/qore/issues/2910/comments"},"review_comments":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/2910/comments"},"review_comment":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qorelanguage/qore/pulls/2910/commits"},"statuses":{"href":"https://api.github.com/repos/qorelanguage/qore/statuses/8d365d71b87a03a103625b3d2b992bda4438af94"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tmandys"}}