{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/captains-log/issues/16","labels_url":"https://api.github.com/repos/balderdashy/captains-log/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/captains-log/issues/16/comments","events_url":"https://api.github.com/repos/balderdashy/captains-log/issues/16/events","html_url":"https://github.com/balderdashy/captains-log/issues/16","id":64566346,"number":16,"title":"Passing meta data to winston custom logger","user":{"login":"zoell","id":3702564,"avatar_url":"https://avatars.githubusercontent.com/u/3702564?v=3","gravatar_id":"","url":"https://api.github.com/users/zoell","html_url":"https://github.com/zoell","followers_url":"https://api.github.com/users/zoell/followers","following_url":"https://api.github.com/users/zoell/following{/other_user}","gists_url":"https://api.github.com/users/zoell/gists{/gist_id}","starred_url":"https://api.github.com/users/zoell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoell/subscriptions","organizations_url":"https://api.github.com/users/zoell/orgs","repos_url":"https://api.github.com/users/zoell/repos","events_url":"https://api.github.com/users/zoell/events{/privacy}","received_events_url":"https://api.github.com/users/zoell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/captains-log/labels/needs%20documentation","name":"needs documentation","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-03-26T16:00:48Z","updated_at":"2016-01-14T07:39:10Z","closed_at":"2016-01-14T07:39:10Z","body":"Using a custom logger like:\r\n```javascript\r\nvar customLogger = new winston.Logger({\r\n    transports: [\r\n        new(winston.transports.DailyRotateFile)({\r\n            level: 'debug',\r\n\t    datePattern: '.yyyy-MM-dd',\r\n\t    json: false,\r\n            filename: './logs/web.log',\r\n    \t    formatter: function(options) {\r\n    \t    return options.timestamp + ' ' + options.level.toUpperCase() + ' ' + options.meta.customentry + ' ' + (undefined !== options.message ? options.message : '');\r\n    \t    }\r\n        }),\r\n    ],\r\n});\r\n```\r\nand setting this as noted in the readme:\r\n```javascript\r\nvar log = require('captains-log')({ custom: customLogger });\r\nlog('hello', {customentry: 'metadata test'});\r\n```\r\nIt seems this is not passing the meta to winston, it just concatenates to the 'hello' as a string.\r\n\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/balderdashy/captains-log/issues/comments/171563560","html_url":"https://github.com/balderdashy/captains-log/issues/16#issuecomment-171563560","issue_url":"https://api.github.com/repos/balderdashy/captains-log/issues/16","id":171563560,"user":{"login":"mikermcneil","id":618009,"avatar_url":"https://avatars.githubusercontent.com/u/618009?v=3","gravatar_id":"","url":"https://api.github.com/users/mikermcneil","html_url":"https://github.com/mikermcneil","followers_url":"https://api.github.com/users/mikermcneil/followers","following_url":"https://api.github.com/users/mikermcneil/following{/other_user}","gists_url":"https://api.github.com/users/mikermcneil/gists{/gist_id}","starred_url":"https://api.github.com/users/mikermcneil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikermcneil/subscriptions","organizations_url":"https://api.github.com/users/mikermcneil/orgs","repos_url":"https://api.github.com/users/mikermcneil/repos","events_url":"https://api.github.com/users/mikermcneil/events{/privacy}","received_events_url":"https://api.github.com/users/mikermcneil/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T07:39:10Z","updated_at":"2016-01-14T07:39:10Z","body":"Thanks again @kevinob11-- just merged.  This will appear on the Sails website as soon as we double-check changes, merge master in 0.11 and redeploy (@rachaelshaw was sick today, but it's on her radar for this week).\r\n\r\n@zoell I'm going to go ahead and close this issue, but if anything else comes up, please open a new issue.  Thanks!"}}