{"action":"opened","number":8280,"pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280","id":60912306,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8280","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8280.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8280.patch","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8280","number":8280,"state":"open","locked":false,"title":"Add support for Winston 'stringify' option","user":{"login":"cjbarth","id":3049726,"avatar_url":"https://avatars.githubusercontent.com/u/3049726?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbarth","html_url":"https://github.com/cjbarth","followers_url":"https://api.github.com/users/cjbarth/followers","following_url":"https://api.github.com/users/cjbarth/following{/other_user}","gists_url":"https://api.github.com/users/cjbarth/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbarth/subscriptions","organizations_url":"https://api.github.com/users/cjbarth/orgs","repos_url":"https://api.github.com/users/cjbarth/repos","events_url":"https://api.github.com/users/cjbarth/events{/privacy}","received_events_url":"https://api.github.com/users/cjbarth/received_events","type":"User","site_admin":false},"body":"Winston supports the `stringify` option to be set to a function that will format messages. This works differently than the `formatter` option in that it handles formatting the `options`/`meta` object too. This isn't well documented (https://github.com/winstonjs/winston/issues/74, http://stackoverflow.com/questions/32131287/how-do-i-change-my-node-winston-json-output-to-be-single-line/32131307#32131307) or documented differently than the source code reads (https://github.com/winstonjs/winston/blob/master/docs/transports.md).\r\n\r\nI also did a minor refactor to use multiple inheritance to follow the base types of loggers in Winston: `console`, `file`, `http`, `memory` with `console`, `file`, and `memory` all being text-based loggers and the `http` being a network-based logger. This made it easier to add the `stringify` option and makes it easier to maintain things going forward (reduces redundancy).","created_at":"2016-02-26T22:12:04Z","updated_at":"2016-02-26T22:12:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280/commits","review_comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280/comments","review_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8280/comments","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/cabe5cca7dd2654494ce997aaa694a0d34e9d66e","head":{"label":"cjbarth:master","ref":"master","sha":"cabe5cca7dd2654494ce997aaa694a0d34e9d66e","user":{"login":"cjbarth","id":3049726,"avatar_url":"https://avatars.githubusercontent.com/u/3049726?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbarth","html_url":"https://github.com/cjbarth","followers_url":"https://api.github.com/users/cjbarth/followers","following_url":"https://api.github.com/users/cjbarth/following{/other_user}","gists_url":"https://api.github.com/users/cjbarth/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbarth/subscriptions","organizations_url":"https://api.github.com/users/cjbarth/orgs","repos_url":"https://api.github.com/users/cjbarth/repos","events_url":"https://api.github.com/users/cjbarth/events{/privacy}","received_events_url":"https://api.github.com/users/cjbarth/received_events","type":"User","site_admin":false},"repo":{"id":41321286,"name":"DefinitelyTyped","full_name":"cjbarth/DefinitelyTyped","owner":{"login":"cjbarth","id":3049726,"avatar_url":"https://avatars.githubusercontent.com/u/3049726?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbarth","html_url":"https://github.com/cjbarth","followers_url":"https://api.github.com/users/cjbarth/followers","following_url":"https://api.github.com/users/cjbarth/following{/other_user}","gists_url":"https://api.github.com/users/cjbarth/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbarth/subscriptions","organizations_url":"https://api.github.com/users/cjbarth/orgs","repos_url":"https://api.github.com/users/cjbarth/repos","events_url":"https://api.github.com/users/cjbarth/events{/privacy}","received_events_url":"https://api.github.com/users/cjbarth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjbarth/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":true,"url":"https://api.github.com/repos/cjbarth/DefinitelyTyped","forks_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/cjbarth/DefinitelyTyped/deployments","created_at":"2015-08-24T18:57:43Z","updated_at":"2016-02-19T19:11:47Z","pushed_at":"2016-02-26T21:55:21Z","git_url":"git://github.com/cjbarth/DefinitelyTyped.git","ssh_url":"git@github.com:cjbarth/DefinitelyTyped.git","clone_url":"https://github.com/cjbarth/DefinitelyTyped.git","svn_url":"https://github.com/cjbarth/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":88173,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"DefinitelyTyped:master","ref":"master","sha":"27d7b56688bfeba9c6fc1ce0ecb611d929982d44","user":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"repo":{"id":6093316,"name":"DefinitelyTyped","full_name":"DefinitelyTyped/DefinitelyTyped","owner":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":false,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","forks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/deployments","created_at":"2012-10-05T16:39:45Z","updated_at":"2016-02-26T16:35:27Z","pushed_at":"2016-02-26T21:58:02Z","git_url":"git://github.com/DefinitelyTyped/DefinitelyTyped.git","ssh_url":"git@github.com:DefinitelyTyped/DefinitelyTyped.git","clone_url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","svn_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":104330,"stargazers_count":6292,"watchers_count":6292,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4435,"mirror_url":null,"open_issues_count":1076,"forks":4435,"open_issues":1076,"watchers":6292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8280"},"issue":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8280"},"comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8280/comments"},"review_comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280/comments"},"review_comment":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/8280/commits"},"statuses":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/cabe5cca7dd2654494ce997aaa694a0d34e9d66e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":45,"changed_files":1}}