{"action":"created","comment":{"url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/comments/89634090","pull_request_review_id":10179401,"id":89634090,"diff_hunk":"@@ -1,15 +1,30 @@\n import { Meteor } from 'meteor/meteor';\n import Winston from 'winston';\n \n-let Logger = new Winston.Logger();\n-\n-// Write logs to console\n-Logger.add(Winston.transports.Console, {\n-  prettyPrint: false,\n-  humanReadableUnhandledException: true,\n-  colorize: true,\n-  handleExceptions: true,\n-});\n+let Logger = new (Winston.Logger)({","path":"bigbluebutton-html5/imports/startup/server/logger.js","position":13,"original_position":13,"commit_id":"3f86f1820c1ca2a96d257f839145d00ff42bec0d","original_commit_id":"3f86f1820c1ca2a96d257f839145d00ff42bec0d","user":{"login":"oswaldoacauan","id":1268518,"avatar_url":"https://avatars.githubusercontent.com/u/1268518?v=3","gravatar_id":"","url":"https://api.github.com/users/oswaldoacauan","html_url":"https://github.com/oswaldoacauan","followers_url":"https://api.github.com/users/oswaldoacauan/followers","following_url":"https://api.github.com/users/oswaldoacauan/following{/other_user}","gists_url":"https://api.github.com/users/oswaldoacauan/gists{/gist_id}","starred_url":"https://api.github.com/users/oswaldoacauan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oswaldoacauan/subscriptions","organizations_url":"https://api.github.com/users/oswaldoacauan/orgs","repos_url":"https://api.github.com/users/oswaldoacauan/repos","events_url":"https://api.github.com/users/oswaldoacauan/events{/privacy}","received_events_url":"https://api.github.com/users/oswaldoacauan/received_events","type":"User","site_admin":false},"body":"The way bellow looks easier to read to me at least.\r\n\r\n```\r\nlet Logger = new Winston.Logger();\r\n\r\nLogger.configure({\r\n  levels: { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5, },\r\n  colors: {\r\n    error: 'red',\r\n    warn: 'yellow',\r\n    info: 'green',\r\n    verbose: 'cyan',\r\n    debug: 'magenta',\r\n    silly: 'gray',\r\n  },\r\n});\r\n```","created_at":"2016-11-25T15:43:05Z","updated_at":"2016-11-25T15:43:06Z","html_url":"https://github.com/bigbluebutton/bigbluebutton/pull/3483#discussion_r89634090","pull_request_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483","_links":{"self":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/comments/89634090"},"html":{"href":"https://github.com/bigbluebutton/bigbluebutton/pull/3483#discussion_r89634090"},"pull_request":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483"}}},"pull_request":{"url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483","id":95226409,"html_url":"https://github.com/bigbluebutton/bigbluebutton/pull/3483","diff_url":"https://github.com/bigbluebutton/bigbluebutton/pull/3483.diff","patch_url":"https://github.com/bigbluebutton/bigbluebutton/pull/3483.patch","issue_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/3483","number":3483,"state":"open","locked":false,"title":"Set Winston Logger Level","user":{"login":"KDSBrowne","id":22058534,"avatar_url":"https://avatars.githubusercontent.com/u/22058534?v=3","gravatar_id":"","url":"https://api.github.com/users/KDSBrowne","html_url":"https://github.com/KDSBrowne","followers_url":"https://api.github.com/users/KDSBrowne/followers","following_url":"https://api.github.com/users/KDSBrowne/following{/other_user}","gists_url":"https://api.github.com/users/KDSBrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/KDSBrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KDSBrowne/subscriptions","organizations_url":"https://api.github.com/users/KDSBrowne/orgs","repos_url":"https://api.github.com/users/KDSBrowne/repos","events_url":"https://api.github.com/users/KDSBrowne/events{/privacy}","received_events_url":"https://api.github.com/users/KDSBrowne/received_events","type":"User","site_admin":false},"body":"In order to log messages, the default Winston Logger priority configuration is used.\r\n\r\nBy default it's priority levels are:\r\n{ error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5 }\r\n\r\nThe higher the message priority, the lower the corresponding integer.\r\n\r\nTo set the logger message priority you can just change the `Logger.transports.console.level` variable to the priority level you want.\r\n\r\nIf the `Logger.transports.console.level` is set to 'warn', then all 'warn' and 'error' messages will be shown in the console. If it is set to 'debug', all messages will be shown except for 'silly'. etc.\r\n\r\nI've added new priority messages to the cursor module to illustrate how the logger will filter the messages.\r\n\r\nThese priority settings do not apply to the logger file transport, it remains the same and logs all messages.\r\n","created_at":"2016-11-24T20:44:43Z","updated_at":"2016-11-25T15:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4df2cb2e137f077dddb7d970e5efa5777e2e743","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483/commits","review_comments_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483/comments","review_comment_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/3483/comments","statuses_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/statuses/3f86f1820c1ca2a96d257f839145d00ff42bec0d","head":{"label":"KDSBrowne:Winston-Logger-Levels","ref":"Winston-Logger-Levels","sha":"3f86f1820c1ca2a96d257f839145d00ff42bec0d","user":{"login":"KDSBrowne","id":22058534,"avatar_url":"https://avatars.githubusercontent.com/u/22058534?v=3","gravatar_id":"","url":"https://api.github.com/users/KDSBrowne","html_url":"https://github.com/KDSBrowne","followers_url":"https://api.github.com/users/KDSBrowne/followers","following_url":"https://api.github.com/users/KDSBrowne/following{/other_user}","gists_url":"https://api.github.com/users/KDSBrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/KDSBrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KDSBrowne/subscriptions","organizations_url":"https://api.github.com/users/KDSBrowne/orgs","repos_url":"https://api.github.com/users/KDSBrowne/repos","events_url":"https://api.github.com/users/KDSBrowne/events{/privacy}","received_events_url":"https://api.github.com/users/KDSBrowne/received_events","type":"User","site_admin":false},"repo":{"id":71931592,"name":"bigbluebutton","full_name":"KDSBrowne/bigbluebutton","owner":{"login":"KDSBrowne","id":22058534,"avatar_url":"https://avatars.githubusercontent.com/u/22058534?v=3","gravatar_id":"","url":"https://api.github.com/users/KDSBrowne","html_url":"https://github.com/KDSBrowne","followers_url":"https://api.github.com/users/KDSBrowne/followers","following_url":"https://api.github.com/users/KDSBrowne/following{/other_user}","gists_url":"https://api.github.com/users/KDSBrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/KDSBrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KDSBrowne/subscriptions","organizations_url":"https://api.github.com/users/KDSBrowne/orgs","repos_url":"https://api.github.com/users/KDSBrowne/repos","events_url":"https://api.github.com/users/KDSBrowne/events{/privacy}","received_events_url":"https://api.github.com/users/KDSBrowne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KDSBrowne/bigbluebutton","description":"BigBlueButton is an open source web conferencing system for on-line learning.","fork":true,"url":"https://api.github.com/repos/KDSBrowne/bigbluebutton","forks_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/forks","keys_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/teams","hooks_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/hooks","issue_events_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/issues/events{/number}","events_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/events","assignees_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/assignees{/user}","branches_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/branches{/branch}","tags_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/tags","blobs_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/git/refs{/sha}","trees_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/statuses/{sha}","languages_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/languages","stargazers_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/stargazers","contributors_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/contributors","subscribers_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/subscribers","subscription_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/subscription","commits_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/commits{/sha}","git_commits_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/git/commits{/sha}","comments_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/comments{/number}","issue_comment_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/issues/comments{/number}","contents_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/contents/{+path}","compare_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/merges","archive_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/downloads","issues_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/issues{/number}","pulls_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/pulls{/number}","milestones_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/milestones{/number}","notifications_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/labels{/name}","releases_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/releases{/id}","deployments_url":"https://api.github.com/repos/KDSBrowne/bigbluebutton/deployments","created_at":"2016-10-25T19:27:52Z","updated_at":"2016-10-25T19:28:05Z","pushed_at":"2016-11-25T14:44:29Z","git_url":"git://github.com/KDSBrowne/bigbluebutton.git","ssh_url":"git@github.com:KDSBrowne/bigbluebutton.git","clone_url":"https://github.com/KDSBrowne/bigbluebutton.git","svn_url":"https://github.com/KDSBrowne/bigbluebutton","homepage":"www.bigbluebutton.org","size":500035,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"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":"bigbluebutton:master","ref":"master","sha":"224114c83daa459ec2ed7574567e428b9fbadc81","user":{"login":"bigbluebutton","id":230228,"avatar_url":"https://avatars.githubusercontent.com/u/230228?v=3","gravatar_id":"","url":"https://api.github.com/users/bigbluebutton","html_url":"https://github.com/bigbluebutton","followers_url":"https://api.github.com/users/bigbluebutton/followers","following_url":"https://api.github.com/users/bigbluebutton/following{/other_user}","gists_url":"https://api.github.com/users/bigbluebutton/gists{/gist_id}","starred_url":"https://api.github.com/users/bigbluebutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigbluebutton/subscriptions","organizations_url":"https://api.github.com/users/bigbluebutton/orgs","repos_url":"https://api.github.com/users/bigbluebutton/repos","events_url":"https://api.github.com/users/bigbluebutton/events{/privacy}","received_events_url":"https://api.github.com/users/bigbluebutton/received_events","type":"Organization","site_admin":false},"repo":{"id":684382,"name":"bigbluebutton","full_name":"bigbluebutton/bigbluebutton","owner":{"login":"bigbluebutton","id":230228,"avatar_url":"https://avatars.githubusercontent.com/u/230228?v=3","gravatar_id":"","url":"https://api.github.com/users/bigbluebutton","html_url":"https://github.com/bigbluebutton","followers_url":"https://api.github.com/users/bigbluebutton/followers","following_url":"https://api.github.com/users/bigbluebutton/following{/other_user}","gists_url":"https://api.github.com/users/bigbluebutton/gists{/gist_id}","starred_url":"https://api.github.com/users/bigbluebutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigbluebutton/subscriptions","organizations_url":"https://api.github.com/users/bigbluebutton/orgs","repos_url":"https://api.github.com/users/bigbluebutton/repos","events_url":"https://api.github.com/users/bigbluebutton/events{/privacy}","received_events_url":"https://api.github.com/users/bigbluebutton/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bigbluebutton/bigbluebutton","description":"BigBlueButton is an open source web conferencing system for on-line learning.","fork":false,"url":"https://api.github.com/repos/bigbluebutton/bigbluebutton","forks_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/forks","keys_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/teams","hooks_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/hooks","issue_events_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/events{/number}","events_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/events","assignees_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/assignees{/user}","branches_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/branches{/branch}","tags_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/tags","blobs_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/statuses/{sha}","languages_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/languages","stargazers_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/stargazers","contributors_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/contributors","subscribers_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/subscribers","subscription_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/subscription","commits_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/contents/{+path}","compare_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/merges","archive_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/downloads","issues_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues{/number}","pulls_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls{/number}","milestones_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/milestones{/number}","notifications_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/labels{/name}","releases_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/releases{/id}","deployments_url":"https://api.github.com/repos/bigbluebutton/bigbluebutton/deployments","created_at":"2010-05-25T01:42:41Z","updated_at":"2016-11-24T05:37:40Z","pushed_at":"2016-11-25T14:44:34Z","git_url":"git://github.com/bigbluebutton/bigbluebutton.git","ssh_url":"git@github.com:bigbluebutton/bigbluebutton.git","clone_url":"https://github.com/bigbluebutton/bigbluebutton.git","svn_url":"https://github.com/bigbluebutton/bigbluebutton","homepage":"www.bigbluebutton.org","size":550016,"stargazers_count":1674,"watchers_count":1674,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3209,"mirror_url":null,"open_issues_count":385,"forks":3209,"open_issues":385,"watchers":1674,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483"},"html":{"href":"https://github.com/bigbluebutton/bigbluebutton/pull/3483"},"issue":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/3483"},"comments":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/issues/3483/comments"},"review_comments":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483/comments"},"review_comment":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/pulls/3483/commits"},"statuses":{"href":"https://api.github.com/repos/bigbluebutton/bigbluebutton/statuses/3f86f1820c1ca2a96d257f839145d00ff42bec0d"}}}}
{"actor":{"display_login":"oswaldoacauan"}}