{"action":"created","comment":{"url":"https://api.github.com/repos/postmanlabs/newman/pulls/comments/35189039","id":35189039,"diff_hunk":"@@ -33,6 +36,27 @@ var AbstractResponseHandler = jsface.Class([EventEmitter], {\n \t},\n \n \t_printResponse: function(error, response, body, request) {\n+        if (Globals.outputFileVerbose) {\n+            var filepath = path.resolve(Globals.outputFileVerbose);\n+\n+            var requestString = \"-------------------------------------------------------------------------------------------\\n\" +","path":"src/responseHandlers/AbstractResponseHandler.js","position":16,"original_position":16,"commit_id":"9229771f14196a50ed4fa5756345bae91a9bfe9a","original_commit_id":"04305b6e235c7cc3df3f81585fe59d70b6011cc2","user":{"login":"czardoz","id":3726484,"avatar_url":"https://avatars.githubusercontent.com/u/3726484?v=3","gravatar_id":"","url":"https://api.github.com/users/czardoz","html_url":"https://github.com/czardoz","followers_url":"https://api.github.com/users/czardoz/followers","following_url":"https://api.github.com/users/czardoz/following{/other_user}","gists_url":"https://api.github.com/users/czardoz/gists{/gist_id}","starred_url":"https://api.github.com/users/czardoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czardoz/subscriptions","organizations_url":"https://api.github.com/users/czardoz/orgs","repos_url":"https://api.github.com/users/czardoz/repos","events_url":"https://api.github.com/users/czardoz/events{/privacy}","received_events_url":"https://api.github.com/users/czardoz/received_events","type":"User","site_admin":false},"body":"Sure, I wonder where else templates could be applicable in newman. @digital-abyss, any specific places you have in mind where you think using templates would be better? ","created_at":"2015-07-22T07:55:05Z","updated_at":"2015-07-22T07:55:05Z","html_url":"https://github.com/postmanlabs/newman/pull/218#discussion_r35189039","pull_request_url":"https://api.github.com/repos/postmanlabs/newman/pulls/218","_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/comments/35189039"},"html":{"href":"https://github.com/postmanlabs/newman/pull/218#discussion_r35189039"},"pull_request":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/218"}}},"pull_request":{"url":"https://api.github.com/repos/postmanlabs/newman/pulls/218","id":38375394,"html_url":"https://github.com/postmanlabs/newman/pull/218","diff_url":"https://github.com/postmanlabs/newman/pull/218.diff","patch_url":"https://github.com/postmanlabs/newman/pull/218.patch","issue_url":"https://api.github.com/repos/postmanlabs/newman/issues/218","number":218,"state":"open","locked":false,"title":"Log Request and Response Bodies","user":{"login":"digital-abyss","id":10736366,"avatar_url":"https://avatars.githubusercontent.com/u/10736366?v=3","gravatar_id":"","url":"https://api.github.com/users/digital-abyss","html_url":"https://github.com/digital-abyss","followers_url":"https://api.github.com/users/digital-abyss/followers","following_url":"https://api.github.com/users/digital-abyss/following{/other_user}","gists_url":"https://api.github.com/users/digital-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/digital-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digital-abyss/subscriptions","organizations_url":"https://api.github.com/users/digital-abyss/orgs","repos_url":"https://api.github.com/users/digital-abyss/repos","events_url":"https://api.github.com/users/digital-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/digital-abyss/received_events","type":"User","site_admin":false},"body":"This adds an optional feature to log (via appending) the full request and response bodies in to a text file.  \r\nIt also adds the method to the normal console logging.\r\nHere's some sample output from the text file:\r\n\r\n```\r\n-------------------------------------------------------------------------------------------\r\n200 3272ms Get status of server. [GET] http://localhost:8080/status\r\n------------------------------------------------------------\r\nRequest headers:\r\n{\r\n \"host\": \"localhost:8080\"\r\n}\r\nRequest body:\r\nundefined\r\n------------------------------------------------------------\r\nResponse headers:\r\n{\r\n \"date\": \"Tue, 23 Jun 2015 19:11:14 GMT\",\r\n \"x-request-id\": \"12345\",\r\n \"x-request-size\": \"-1\",\r\n \"x--server-id\": \"10.1.1.14\",\r\n \"content-type\": \"application/json\",\r\n \"connection\": \"close\"\r\n}\r\nResponse body:\r\n{\"Status\":\"OK\" }\r\n\r\n```\r\n\r\n\r\n","created_at":"2015-06-23T19:48:53Z","updated_at":"2015-07-22T07:55:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38c4d165d5d9976d29db890afc9564757d4c4ab4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/postmanlabs/newman/pulls/218/commits","review_comments_url":"https://api.github.com/repos/postmanlabs/newman/pulls/218/comments","review_comment_url":"https://api.github.com/repos/postmanlabs/newman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postmanlabs/newman/issues/218/comments","statuses_url":"https://api.github.com/repos/postmanlabs/newman/statuses/9229771f14196a50ed4fa5756345bae91a9bfe9a","head":{"label":"digital-abyss:log-request-response-pr","ref":"log-request-response-pr","sha":"9229771f14196a50ed4fa5756345bae91a9bfe9a","user":{"login":"digital-abyss","id":10736366,"avatar_url":"https://avatars.githubusercontent.com/u/10736366?v=3","gravatar_id":"","url":"https://api.github.com/users/digital-abyss","html_url":"https://github.com/digital-abyss","followers_url":"https://api.github.com/users/digital-abyss/followers","following_url":"https://api.github.com/users/digital-abyss/following{/other_user}","gists_url":"https://api.github.com/users/digital-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/digital-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digital-abyss/subscriptions","organizations_url":"https://api.github.com/users/digital-abyss/orgs","repos_url":"https://api.github.com/users/digital-abyss/repos","events_url":"https://api.github.com/users/digital-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/digital-abyss/received_events","type":"User","site_admin":false},"repo":{"id":33883089,"name":"Newman","full_name":"digital-abyss/Newman","owner":{"login":"digital-abyss","id":10736366,"avatar_url":"https://avatars.githubusercontent.com/u/10736366?v=3","gravatar_id":"","url":"https://api.github.com/users/digital-abyss","html_url":"https://github.com/digital-abyss","followers_url":"https://api.github.com/users/digital-abyss/followers","following_url":"https://api.github.com/users/digital-abyss/following{/other_user}","gists_url":"https://api.github.com/users/digital-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/digital-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digital-abyss/subscriptions","organizations_url":"https://api.github.com/users/digital-abyss/orgs","repos_url":"https://api.github.com/users/digital-abyss/repos","events_url":"https://api.github.com/users/digital-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/digital-abyss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/digital-abyss/Newman","description":"Newman is a command-line collection runner for Postman","fork":true,"url":"https://api.github.com/repos/digital-abyss/Newman","forks_url":"https://api.github.com/repos/digital-abyss/Newman/forks","keys_url":"https://api.github.com/repos/digital-abyss/Newman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digital-abyss/Newman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digital-abyss/Newman/teams","hooks_url":"https://api.github.com/repos/digital-abyss/Newman/hooks","issue_events_url":"https://api.github.com/repos/digital-abyss/Newman/issues/events{/number}","events_url":"https://api.github.com/repos/digital-abyss/Newman/events","assignees_url":"https://api.github.com/repos/digital-abyss/Newman/assignees{/user}","branches_url":"https://api.github.com/repos/digital-abyss/Newman/branches{/branch}","tags_url":"https://api.github.com/repos/digital-abyss/Newman/tags","blobs_url":"https://api.github.com/repos/digital-abyss/Newman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digital-abyss/Newman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digital-abyss/Newman/git/refs{/sha}","trees_url":"https://api.github.com/repos/digital-abyss/Newman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digital-abyss/Newman/statuses/{sha}","languages_url":"https://api.github.com/repos/digital-abyss/Newman/languages","stargazers_url":"https://api.github.com/repos/digital-abyss/Newman/stargazers","contributors_url":"https://api.github.com/repos/digital-abyss/Newman/contributors","subscribers_url":"https://api.github.com/repos/digital-abyss/Newman/subscribers","subscription_url":"https://api.github.com/repos/digital-abyss/Newman/subscription","commits_url":"https://api.github.com/repos/digital-abyss/Newman/commits{/sha}","git_commits_url":"https://api.github.com/repos/digital-abyss/Newman/git/commits{/sha}","comments_url":"https://api.github.com/repos/digital-abyss/Newman/comments{/number}","issue_comment_url":"https://api.github.com/repos/digital-abyss/Newman/issues/comments{/number}","contents_url":"https://api.github.com/repos/digital-abyss/Newman/contents/{+path}","compare_url":"https://api.github.com/repos/digital-abyss/Newman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digital-abyss/Newman/merges","archive_url":"https://api.github.com/repos/digital-abyss/Newman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digital-abyss/Newman/downloads","issues_url":"https://api.github.com/repos/digital-abyss/Newman/issues{/number}","pulls_url":"https://api.github.com/repos/digital-abyss/Newman/pulls{/number}","milestones_url":"https://api.github.com/repos/digital-abyss/Newman/milestones{/number}","notifications_url":"https://api.github.com/repos/digital-abyss/Newman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digital-abyss/Newman/labels{/name}","releases_url":"https://api.github.com/repos/digital-abyss/Newman/releases{/id}","created_at":"2015-04-13T17:30:05Z","updated_at":"2015-04-27T20:31:31Z","pushed_at":"2015-07-21T22:02:48Z","git_url":"git://github.com/digital-abyss/Newman.git","ssh_url":"git@github.com:digital-abyss/Newman.git","clone_url":"https://github.com/digital-abyss/Newman.git","svn_url":"https://github.com/digital-abyss/Newman","homepage":"http://www.getpostman.com","size":775,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"postmanlabs:develop","ref":"develop","sha":"88a8c36ea6fd1f59d3681484bd230c7cce773b03","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17449493,"name":"newman","full_name":"postmanlabs/newman","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/newman","description":"Newman is a command-line collection runner for Postman","fork":false,"url":"https://api.github.com/repos/postmanlabs/newman","forks_url":"https://api.github.com/repos/postmanlabs/newman/forks","keys_url":"https://api.github.com/repos/postmanlabs/newman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/newman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/newman/teams","hooks_url":"https://api.github.com/repos/postmanlabs/newman/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/newman/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/newman/events","assignees_url":"https://api.github.com/repos/postmanlabs/newman/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/newman/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/newman/tags","blobs_url":"https://api.github.com/repos/postmanlabs/newman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/newman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/newman/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/newman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/newman/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/newman/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/newman/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/newman/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/newman/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/newman/subscription","commits_url":"https://api.github.com/repos/postmanlabs/newman/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/newman/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/newman/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/newman/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/newman/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/newman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/newman/merges","archive_url":"https://api.github.com/repos/postmanlabs/newman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/newman/downloads","issues_url":"https://api.github.com/repos/postmanlabs/newman/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/newman/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/newman/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/newman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/newman/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/newman/releases{/id}","created_at":"2014-03-05T17:52:17Z","updated_at":"2015-07-17T22:28:52Z","pushed_at":"2015-07-21T22:02:48Z","git_url":"git://github.com/postmanlabs/newman.git","ssh_url":"git@github.com:postmanlabs/newman.git","clone_url":"https://github.com/postmanlabs/newman.git","svn_url":"https://github.com/postmanlabs/newman","homepage":"http://www.getpostman.com","size":2081,"stargazers_count":461,"watchers_count":461,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":46,"forks":81,"open_issues":46,"watchers":461,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/218"},"html":{"href":"https://github.com/postmanlabs/newman/pull/218"},"issue":{"href":"https://api.github.com/repos/postmanlabs/newman/issues/218"},"comments":{"href":"https://api.github.com/repos/postmanlabs/newman/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/postmanlabs/newman/statuses/9229771f14196a50ed4fa5756345bae91a9bfe9a"}}}}