{"action":"created","comment":{"url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/comments/226828945","pull_request_review_id":166751255,"id":226828945,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjgyODk0NQ==","diff_hunk":"@@ -184,7 +184,7 @@ function writeLog(self, level, caller, message)\n       end\r\n \r\n       if self.logLevel_ <= level && self.logfid > -1\r\n-        fprintf(self.logfid, logline);\r\n+        fprintf(self.logfid, '%s', logline);\r","path":"+logging/logging.m","position":5,"original_position":5,"commit_id":"a86ee1ebe2a719131d785111e5ebcba09e66ecbd","original_commit_id":"a86ee1ebe2a719131d785111e5ebcba09e66ecbd","user":{"login":"MikeChuckRoast","id":33348493,"node_id":"MDQ6VXNlcjMzMzQ4NDkz","avatar_url":"https://avatars0.githubusercontent.com/u/33348493?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeChuckRoast","html_url":"https://github.com/MikeChuckRoast","followers_url":"https://api.github.com/users/MikeChuckRoast/followers","following_url":"https://api.github.com/users/MikeChuckRoast/following{/other_user}","gists_url":"https://api.github.com/users/MikeChuckRoast/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeChuckRoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeChuckRoast/subscriptions","organizations_url":"https://api.github.com/users/MikeChuckRoast/orgs","repos_url":"https://api.github.com/users/MikeChuckRoast/repos","events_url":"https://api.github.com/users/MikeChuckRoast/events{/privacy}","received_events_url":"https://api.github.com/users/MikeChuckRoast/received_events","type":"User","site_admin":false},"body":"I was about to submit a pull request for the same change. A similar problem happens if there is a % in your output.","created_at":"2018-10-20T14:31:41Z","updated_at":"2018-10-20T14:31:41Z","html_url":"https://github.com/optimizers/logging4matlab/pull/15#discussion_r226828945","pull_request_url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/comments/226828945"},"html":{"href":"https://github.com/optimizers/logging4matlab/pull/15#discussion_r226828945"},"pull_request":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15"}},"in_reply_to_id":159082885},"pull_request":{"url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15","id":160156855,"node_id":"MDExOlB1bGxSZXF1ZXN0MTYwMTU2ODU1","html_url":"https://github.com/optimizers/logging4matlab/pull/15","diff_url":"https://github.com/optimizers/logging4matlab/pull/15.diff","patch_url":"https://github.com/optimizers/logging4matlab/pull/15.patch","issue_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/15","number":15,"state":"open","locked":false,"title":"Fixed backslash bug on file output","user":{"login":"willvousden","id":152388,"node_id":"MDQ6VXNlcjE1MjM4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/152388?v=4","gravatar_id":"","url":"https://api.github.com/users/willvousden","html_url":"https://github.com/willvousden","followers_url":"https://api.github.com/users/willvousden/followers","following_url":"https://api.github.com/users/willvousden/following{/other_user}","gists_url":"https://api.github.com/users/willvousden/gists{/gist_id}","starred_url":"https://api.github.com/users/willvousden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willvousden/subscriptions","organizations_url":"https://api.github.com/users/willvousden/orgs","repos_url":"https://api.github.com/users/willvousden/repos","events_url":"https://api.github.com/users/willvousden/events{/privacy}","received_events_url":"https://api.github.com/users/willvousden/received_events","type":"User","site_admin":false},"body":"When sending output to a file, `logline` is used as the format string in\r\n`fprintf`.  If there are backslashes in the string (or other special characters), `fprintf`\r\nbreaks.\r\n\r\nThis commit fixes the problem, by formatting the log message with `%s`.","created_at":"2017-12-26T18:42:14Z","updated_at":"2018-10-20T14:31:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d2f4ae18e0a0ccd94db86ecdb55b9ae8b7e33cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15/commits","review_comments_url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15/comments","review_comment_url":"https://api.github.com/repos/optimizers/logging4matlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/15/comments","statuses_url":"https://api.github.com/repos/optimizers/logging4matlab/statuses/a86ee1ebe2a719131d785111e5ebcba09e66ecbd","head":{"label":"willvousden:fprintf-fix","ref":"fprintf-fix","sha":"a86ee1ebe2a719131d785111e5ebcba09e66ecbd","user":{"login":"willvousden","id":152388,"node_id":"MDQ6VXNlcjE1MjM4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/152388?v=4","gravatar_id":"","url":"https://api.github.com/users/willvousden","html_url":"https://github.com/willvousden","followers_url":"https://api.github.com/users/willvousden/followers","following_url":"https://api.github.com/users/willvousden/following{/other_user}","gists_url":"https://api.github.com/users/willvousden/gists{/gist_id}","starred_url":"https://api.github.com/users/willvousden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willvousden/subscriptions","organizations_url":"https://api.github.com/users/willvousden/orgs","repos_url":"https://api.github.com/users/willvousden/repos","events_url":"https://api.github.com/users/willvousden/events{/privacy}","received_events_url":"https://api.github.com/users/willvousden/received_events","type":"User","site_admin":false},"repo":{"id":115442645,"node_id":"MDEwOlJlcG9zaXRvcnkxMTU0NDI2NDU=","name":"logging4matlab","full_name":"willvousden/logging4matlab","private":false,"owner":{"login":"willvousden","id":152388,"node_id":"MDQ6VXNlcjE1MjM4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/152388?v=4","gravatar_id":"","url":"https://api.github.com/users/willvousden","html_url":"https://github.com/willvousden","followers_url":"https://api.github.com/users/willvousden/followers","following_url":"https://api.github.com/users/willvousden/following{/other_user}","gists_url":"https://api.github.com/users/willvousden/gists{/gist_id}","starred_url":"https://api.github.com/users/willvousden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willvousden/subscriptions","organizations_url":"https://api.github.com/users/willvousden/orgs","repos_url":"https://api.github.com/users/willvousden/repos","events_url":"https://api.github.com/users/willvousden/events{/privacy}","received_events_url":"https://api.github.com/users/willvousden/received_events","type":"User","site_admin":false},"html_url":"https://github.com/willvousden/logging4matlab","description":"Simple Logging Module for Matlab","fork":true,"url":"https://api.github.com/repos/willvousden/logging4matlab","forks_url":"https://api.github.com/repos/willvousden/logging4matlab/forks","keys_url":"https://api.github.com/repos/willvousden/logging4matlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willvousden/logging4matlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willvousden/logging4matlab/teams","hooks_url":"https://api.github.com/repos/willvousden/logging4matlab/hooks","issue_events_url":"https://api.github.com/repos/willvousden/logging4matlab/issues/events{/number}","events_url":"https://api.github.com/repos/willvousden/logging4matlab/events","assignees_url":"https://api.github.com/repos/willvousden/logging4matlab/assignees{/user}","branches_url":"https://api.github.com/repos/willvousden/logging4matlab/branches{/branch}","tags_url":"https://api.github.com/repos/willvousden/logging4matlab/tags","blobs_url":"https://api.github.com/repos/willvousden/logging4matlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willvousden/logging4matlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willvousden/logging4matlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/willvousden/logging4matlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willvousden/logging4matlab/statuses/{sha}","languages_url":"https://api.github.com/repos/willvousden/logging4matlab/languages","stargazers_url":"https://api.github.com/repos/willvousden/logging4matlab/stargazers","contributors_url":"https://api.github.com/repos/willvousden/logging4matlab/contributors","subscribers_url":"https://api.github.com/repos/willvousden/logging4matlab/subscribers","subscription_url":"https://api.github.com/repos/willvousden/logging4matlab/subscription","commits_url":"https://api.github.com/repos/willvousden/logging4matlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/willvousden/logging4matlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/willvousden/logging4matlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/willvousden/logging4matlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/willvousden/logging4matlab/contents/{+path}","compare_url":"https://api.github.com/repos/willvousden/logging4matlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willvousden/logging4matlab/merges","archive_url":"https://api.github.com/repos/willvousden/logging4matlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willvousden/logging4matlab/downloads","issues_url":"https://api.github.com/repos/willvousden/logging4matlab/issues{/number}","pulls_url":"https://api.github.com/repos/willvousden/logging4matlab/pulls{/number}","milestones_url":"https://api.github.com/repos/willvousden/logging4matlab/milestones{/number}","notifications_url":"https://api.github.com/repos/willvousden/logging4matlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willvousden/logging4matlab/labels{/name}","releases_url":"https://api.github.com/repos/willvousden/logging4matlab/releases{/id}","deployments_url":"https://api.github.com/repos/willvousden/logging4matlab/deployments","created_at":"2017-12-26T17:41:25Z","updated_at":"2017-12-26T17:41:27Z","pushed_at":"2017-12-26T17:45:36Z","git_url":"git://github.com/willvousden/logging4matlab.git","ssh_url":"git@github.com:willvousden/logging4matlab.git","clone_url":"https://github.com/willvousden/logging4matlab.git","svn_url":"https://github.com/willvousden/logging4matlab","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":"Matlab","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"optimizers:master","ref":"master","sha":"35a4746393c486dde965e8780950d40f5c121465","user":{"login":"optimizers","id":2086331,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODYzMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2086331?v=4","gravatar_id":"","url":"https://api.github.com/users/optimizers","html_url":"https://github.com/optimizers","followers_url":"https://api.github.com/users/optimizers/followers","following_url":"https://api.github.com/users/optimizers/following{/other_user}","gists_url":"https://api.github.com/users/optimizers/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizers/subscriptions","organizations_url":"https://api.github.com/users/optimizers/orgs","repos_url":"https://api.github.com/users/optimizers/repos","events_url":"https://api.github.com/users/optimizers/events{/privacy}","received_events_url":"https://api.github.com/users/optimizers/received_events","type":"Organization","site_admin":false},"repo":{"id":68237788,"node_id":"MDEwOlJlcG9zaXRvcnk2ODIzNzc4OA==","name":"logging4matlab","full_name":"optimizers/logging4matlab","private":false,"owner":{"login":"optimizers","id":2086331,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODYzMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2086331?v=4","gravatar_id":"","url":"https://api.github.com/users/optimizers","html_url":"https://github.com/optimizers","followers_url":"https://api.github.com/users/optimizers/followers","following_url":"https://api.github.com/users/optimizers/following{/other_user}","gists_url":"https://api.github.com/users/optimizers/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizers/subscriptions","organizations_url":"https://api.github.com/users/optimizers/orgs","repos_url":"https://api.github.com/users/optimizers/repos","events_url":"https://api.github.com/users/optimizers/events{/privacy}","received_events_url":"https://api.github.com/users/optimizers/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/optimizers/logging4matlab","description":"Simple Logging Module for Matlab","fork":false,"url":"https://api.github.com/repos/optimizers/logging4matlab","forks_url":"https://api.github.com/repos/optimizers/logging4matlab/forks","keys_url":"https://api.github.com/repos/optimizers/logging4matlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/optimizers/logging4matlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/optimizers/logging4matlab/teams","hooks_url":"https://api.github.com/repos/optimizers/logging4matlab/hooks","issue_events_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/events{/number}","events_url":"https://api.github.com/repos/optimizers/logging4matlab/events","assignees_url":"https://api.github.com/repos/optimizers/logging4matlab/assignees{/user}","branches_url":"https://api.github.com/repos/optimizers/logging4matlab/branches{/branch}","tags_url":"https://api.github.com/repos/optimizers/logging4matlab/tags","blobs_url":"https://api.github.com/repos/optimizers/logging4matlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/optimizers/logging4matlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/optimizers/logging4matlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/optimizers/logging4matlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/optimizers/logging4matlab/statuses/{sha}","languages_url":"https://api.github.com/repos/optimizers/logging4matlab/languages","stargazers_url":"https://api.github.com/repos/optimizers/logging4matlab/stargazers","contributors_url":"https://api.github.com/repos/optimizers/logging4matlab/contributors","subscribers_url":"https://api.github.com/repos/optimizers/logging4matlab/subscribers","subscription_url":"https://api.github.com/repos/optimizers/logging4matlab/subscription","commits_url":"https://api.github.com/repos/optimizers/logging4matlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/optimizers/logging4matlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/optimizers/logging4matlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/optimizers/logging4matlab/contents/{+path}","compare_url":"https://api.github.com/repos/optimizers/logging4matlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/optimizers/logging4matlab/merges","archive_url":"https://api.github.com/repos/optimizers/logging4matlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/optimizers/logging4matlab/downloads","issues_url":"https://api.github.com/repos/optimizers/logging4matlab/issues{/number}","pulls_url":"https://api.github.com/repos/optimizers/logging4matlab/pulls{/number}","milestones_url":"https://api.github.com/repos/optimizers/logging4matlab/milestones{/number}","notifications_url":"https://api.github.com/repos/optimizers/logging4matlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/optimizers/logging4matlab/labels{/name}","releases_url":"https://api.github.com/repos/optimizers/logging4matlab/releases{/id}","deployments_url":"https://api.github.com/repos/optimizers/logging4matlab/deployments","created_at":"2016-09-14T19:46:38Z","updated_at":"2018-09-21T15:38:41Z","pushed_at":"2018-09-05T11:38:55Z","git_url":"git://github.com/optimizers/logging4matlab.git","ssh_url":"git@github.com:optimizers/logging4matlab.git","clone_url":"https://github.com/optimizers/logging4matlab.git","svn_url":"https://github.com/optimizers/logging4matlab","homepage":null,"size":20,"stargazers_count":21,"watchers_count":21,"language":"Matlab","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":5,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15"},"html":{"href":"https://github.com/optimizers/logging4matlab/pull/15"},"issue":{"href":"https://api.github.com/repos/optimizers/logging4matlab/issues/15"},"comments":{"href":"https://api.github.com/repos/optimizers/logging4matlab/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/optimizers/logging4matlab/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/optimizers/logging4matlab/statuses/a86ee1ebe2a719131d785111e5ebcba09e66ecbd"}},"author_association":"NONE"}}
{"actor":{"display_login":"MikeChuckRoast"}}