{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/603","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/603/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/603/events","html_url":"https://github.com/winstonjs/winston/issues/603","id":67856741,"number":603,"title":"colorize + formatter","user":{"login":"monolithed","id":803674,"avatar_url":"https://avatars.githubusercontent.com/u/803674?v=3","gravatar_id":"","url":"https://api.github.com/users/monolithed","html_url":"https://github.com/monolithed","followers_url":"https://api.github.com/users/monolithed/followers","following_url":"https://api.github.com/users/monolithed/following{/other_user}","gists_url":"https://api.github.com/users/monolithed/gists{/gist_id}","starred_url":"https://api.github.com/users/monolithed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monolithed/subscriptions","organizations_url":"https://api.github.com/users/monolithed/orgs","repos_url":"https://api.github.com/users/monolithed/repos","events_url":"https://api.github.com/users/monolithed/events{/privacy}","received_events_url":"https://api.github.com/users/monolithed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-12T01:25:03Z","updated_at":"2015-04-21T20:39:55Z","closed_at":null,"body":"```js\r\nvar winston = require('winston');\r\n\r\nvar logger = new (winston.Logger)({\r\n\ttransports: [\r\n\t\tnew (winston.transports.Console)({\r\n\t\t\tcolorize: 'all',\r\n\r\n\t\t\tformatter: function (options) {\r\n\t\t\t\treturn options.message;\r\n\t\t\t}\r\n\t\t})\r\n\t]\r\n});\r\n\r\nlogger.error('one'); // not colored\r\n```\r\n\r\nOf course it may be possible like:\r\n\r\n```js\r\nvar config = require('winston/lib/winston/config');\r\n\r\n... \r\nformatter: function (options) {\r\n\treturn config.colorize(options.level, options.message);\r\n}\r\n...\r\n```\r\nBut why?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston/issues/comments/94933344","html_url":"https://github.com/winstonjs/winston/issues/603#issuecomment-94933344","issue_url":"https://api.github.com/repos/winstonjs/winston/issues/603","id":94933344,"user":{"login":"indexzero","id":4624,"avatar_url":"https://avatars.githubusercontent.com/u/4624?v=3","gravatar_id":"","url":"https://api.github.com/users/indexzero","html_url":"https://github.com/indexzero","followers_url":"https://api.github.com/users/indexzero/followers","following_url":"https://api.github.com/users/indexzero/following{/other_user}","gists_url":"https://api.github.com/users/indexzero/gists{/gist_id}","starred_url":"https://api.github.com/users/indexzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indexzero/subscriptions","organizations_url":"https://api.github.com/users/indexzero/orgs","repos_url":"https://api.github.com/users/indexzero/repos","events_url":"https://api.github.com/users/indexzero/events{/privacy}","received_events_url":"https://api.github.com/users/indexzero/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T20:39:55Z","updated_at":"2015-04-21T20:39:55Z","body":"This is currently by design, but it is the class of bug that we are trying to fix in `winston@2.0.0` by moving to a more well understood streams interface."}}