{"action":"created","comment":{"url":"https://api.github.com/repos/angular/dgeni/pulls/comments/37735351","id":37735351,"diff_hunk":"@@ -0,0 +1,35 @@\n+var _ = require('lodash');\n+var Package = require('../Package');\n+var diff = require('objectdiff').diff;\n+var options = {\n+  docsToTrackFn: function(docs) {}\n+};\n+\n+var generations = [];\n+var previousTrackedDocs;\n+\n+module.exports = new Package('trackDocLogger')\n+\n+.factory('trackDocLoggerOptions', function() {\n+  return options;\n+})\n+\n+.eventHandler('processorEnd', function() {\n+  return function(event, processor, docs) {\n+    trackedDocs = options.docsToTrackFn(docs);\n+    if ( trackedDocs ) {\n+     if ( !_.isEqual(trackedDocs, previousTrackedDocs) ) {\n+        trackedDocs = _.cloneDeep(trackedDocs);\n+        generations.push({ processor: processor.name, docs: trackedDocs });\n+        previousTrackedDocs = trackedDocs;\n+     }\n+    }\n+  };\n+})\n+\n+.eventHandler('generationEnd', function(log) {\n+  return function() {\n+    log.info('trackDocLogger settings:', options);\n+    log.info('trackDocLogger tracked changes:', generations);\n+  }","path":"lib/packages/trackDocLogger.js","position":34,"original_position":34,"commit_id":"9fa7e86d32e604dbeebd1230df661ee7617dadcd","original_commit_id":"9fa7e86d32e604dbeebd1230df661ee7617dadcd","user":{"login":"forresst","id":163352,"avatar_url":"https://avatars.githubusercontent.com/u/163352?v=3","gravatar_id":"","url":"https://api.github.com/users/forresst","html_url":"https://github.com/forresst","followers_url":"https://api.github.com/users/forresst/followers","following_url":"https://api.github.com/users/forresst/following{/other_user}","gists_url":"https://api.github.com/users/forresst/gists{/gist_id}","starred_url":"https://api.github.com/users/forresst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forresst/subscriptions","organizations_url":"https://api.github.com/users/forresst/orgs","repos_url":"https://api.github.com/users/forresst/repos","events_url":"https://api.github.com/users/forresst/events{/privacy}","received_events_url":"https://api.github.com/users/forresst/received_events","type":"User","site_admin":false},"body":"miss `;`","created_at":"2015-08-24T09:49:46Z","updated_at":"2015-08-24T09:49:46Z","html_url":"https://github.com/angular/dgeni/pull/134#discussion_r37735351","pull_request_url":"https://api.github.com/repos/angular/dgeni/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/angular/dgeni/pulls/comments/37735351"},"html":{"href":"https://github.com/angular/dgeni/pull/134#discussion_r37735351"},"pull_request":{"href":"https://api.github.com/repos/angular/dgeni/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/angular/dgeni/pulls/134","id":43132106,"html_url":"https://github.com/angular/dgeni/pull/134","diff_url":"https://github.com/angular/dgeni/pull/134.diff","patch_url":"https://github.com/angular/dgeni/pull/134.patch","issue_url":"https://api.github.com/repos/angular/dgeni/issues/134","number":134,"state":"open","locked":false,"title":"Extra loggers","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"These two new packages, which should end up in dgeni-packages, add the ability to do more detailed logging of what is going on inside Dgeni during document processing.\r\n\r\nThey rely upon the event hooks that were added in #133.\r\n\r\nThere is no documentation of the loggers yet - just wanted to get some feedback on the idea.","created_at":"2015-08-24T00:33:36Z","updated_at":"2015-08-24T09:49:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e9086f333b511ab264a6a3ec950a42ca2c4c60d","assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/dgeni/milestones/4","html_url":"https://github.com/angular/dgeni/milestones/0.4.2%20-%20event%20hooks","labels_url":"https://api.github.com/repos/angular/dgeni/milestones/4/labels","id":1268444,"number":4,"title":"0.4.2 - event hooks","description":"","creator":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-08-24T00:21:44Z","updated_at":"2015-08-24T00:33:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/angular/dgeni/pulls/134/commits","review_comments_url":"https://api.github.com/repos/angular/dgeni/pulls/134/comments","review_comment_url":"https://api.github.com/repos/angular/dgeni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/dgeni/issues/134/comments","statuses_url":"https://api.github.com/repos/angular/dgeni/statuses/9fa7e86d32e604dbeebd1230df661ee7617dadcd","head":{"label":"angular:extra-loggers","ref":"extra-loggers","sha":"9fa7e86d32e604dbeebd1230df661ee7617dadcd","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":15881968,"name":"dgeni","full_name":"angular/dgeni","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/dgeni","description":"Flexible JavaScript documentation generator used by AngularJS, Protractor and other JS projects","fork":false,"url":"https://api.github.com/repos/angular/dgeni","forks_url":"https://api.github.com/repos/angular/dgeni/forks","keys_url":"https://api.github.com/repos/angular/dgeni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/dgeni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/dgeni/teams","hooks_url":"https://api.github.com/repos/angular/dgeni/hooks","issue_events_url":"https://api.github.com/repos/angular/dgeni/issues/events{/number}","events_url":"https://api.github.com/repos/angular/dgeni/events","assignees_url":"https://api.github.com/repos/angular/dgeni/assignees{/user}","branches_url":"https://api.github.com/repos/angular/dgeni/branches{/branch}","tags_url":"https://api.github.com/repos/angular/dgeni/tags","blobs_url":"https://api.github.com/repos/angular/dgeni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/dgeni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/dgeni/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/dgeni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/dgeni/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/dgeni/languages","stargazers_url":"https://api.github.com/repos/angular/dgeni/stargazers","contributors_url":"https://api.github.com/repos/angular/dgeni/contributors","subscribers_url":"https://api.github.com/repos/angular/dgeni/subscribers","subscription_url":"https://api.github.com/repos/angular/dgeni/subscription","commits_url":"https://api.github.com/repos/angular/dgeni/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/dgeni/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/dgeni/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/dgeni/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/dgeni/contents/{+path}","compare_url":"https://api.github.com/repos/angular/dgeni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/dgeni/merges","archive_url":"https://api.github.com/repos/angular/dgeni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/dgeni/downloads","issues_url":"https://api.github.com/repos/angular/dgeni/issues{/number}","pulls_url":"https://api.github.com/repos/angular/dgeni/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/dgeni/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/dgeni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/dgeni/labels{/name}","releases_url":"https://api.github.com/repos/angular/dgeni/releases{/id}","created_at":"2014-01-13T21:12:13Z","updated_at":"2015-08-23T19:03:32Z","pushed_at":"2015-08-24T07:56:16Z","git_url":"git://github.com/angular/dgeni.git","ssh_url":"git@github.com:angular/dgeni.git","clone_url":"https://github.com/angular/dgeni.git","svn_url":"https://github.com/angular/dgeni","homepage":null,"size":5832,"stargazers_count":416,"watchers_count":416,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":22,"forks":42,"open_issues":22,"watchers":416,"default_branch":"master"}},"base":{"label":"angular:hooks","ref":"hooks","sha":"1e7d217eb0808651f0cf5b3670c20b20aaf53eae","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":15881968,"name":"dgeni","full_name":"angular/dgeni","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/dgeni","description":"Flexible JavaScript documentation generator used by AngularJS, Protractor and other JS projects","fork":false,"url":"https://api.github.com/repos/angular/dgeni","forks_url":"https://api.github.com/repos/angular/dgeni/forks","keys_url":"https://api.github.com/repos/angular/dgeni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/dgeni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/dgeni/teams","hooks_url":"https://api.github.com/repos/angular/dgeni/hooks","issue_events_url":"https://api.github.com/repos/angular/dgeni/issues/events{/number}","events_url":"https://api.github.com/repos/angular/dgeni/events","assignees_url":"https://api.github.com/repos/angular/dgeni/assignees{/user}","branches_url":"https://api.github.com/repos/angular/dgeni/branches{/branch}","tags_url":"https://api.github.com/repos/angular/dgeni/tags","blobs_url":"https://api.github.com/repos/angular/dgeni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/dgeni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/dgeni/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/dgeni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/dgeni/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/dgeni/languages","stargazers_url":"https://api.github.com/repos/angular/dgeni/stargazers","contributors_url":"https://api.github.com/repos/angular/dgeni/contributors","subscribers_url":"https://api.github.com/repos/angular/dgeni/subscribers","subscription_url":"https://api.github.com/repos/angular/dgeni/subscription","commits_url":"https://api.github.com/repos/angular/dgeni/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/dgeni/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/dgeni/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/dgeni/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/dgeni/contents/{+path}","compare_url":"https://api.github.com/repos/angular/dgeni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/dgeni/merges","archive_url":"https://api.github.com/repos/angular/dgeni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/dgeni/downloads","issues_url":"https://api.github.com/repos/angular/dgeni/issues{/number}","pulls_url":"https://api.github.com/repos/angular/dgeni/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/dgeni/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/dgeni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/dgeni/labels{/name}","releases_url":"https://api.github.com/repos/angular/dgeni/releases{/id}","created_at":"2014-01-13T21:12:13Z","updated_at":"2015-08-23T19:03:32Z","pushed_at":"2015-08-24T07:56:16Z","git_url":"git://github.com/angular/dgeni.git","ssh_url":"git@github.com:angular/dgeni.git","clone_url":"https://github.com/angular/dgeni.git","svn_url":"https://github.com/angular/dgeni","homepage":null,"size":5832,"stargazers_count":416,"watchers_count":416,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":22,"forks":42,"open_issues":22,"watchers":416,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/dgeni/pulls/134"},"html":{"href":"https://github.com/angular/dgeni/pull/134"},"issue":{"href":"https://api.github.com/repos/angular/dgeni/issues/134"},"comments":{"href":"https://api.github.com/repos/angular/dgeni/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/dgeni/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/dgeni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/dgeni/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/angular/dgeni/statuses/9fa7e86d32e604dbeebd1230df661ee7617dadcd"}}}}