{"action":"created","issue":{"url":"https://api.github.com/repos/krakenjs/pine/issues/6","repository_url":"https://api.github.com/repos/krakenjs/pine","labels_url":"https://api.github.com/repos/krakenjs/pine/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/pine/issues/6/comments","events_url":"https://api.github.com/repos/krakenjs/pine/issues/6/events","html_url":"https://github.com/krakenjs/pine/issues/6","id":48107488,"number":6,"title":"Multiple file transports?","user":{"login":"johnkchiu","id":242485,"avatar_url":"https://avatars.githubusercontent.com/u/242485?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkchiu","html_url":"https://github.com/johnkchiu","followers_url":"https://api.github.com/users/johnkchiu/followers","following_url":"https://api.github.com/users/johnkchiu/following{/other_user}","gists_url":"https://api.github.com/users/johnkchiu/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkchiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkchiu/subscriptions","organizations_url":"https://api.github.com/users/johnkchiu/orgs","repos_url":"https://api.github.com/users/johnkchiu/repos","events_url":"https://api.github.com/users/johnkchiu/events{/privacy}","received_events_url":"https://api.github.com/users/johnkchiu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/krakenjs/pine/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-11-07T17:25:11Z","updated_at":"2016-09-22T10:08:07Z","closed_at":null,"body":"I don't think it's possible to create multiple file transport via configuration...\r\n\r\n```\r\n    return pine(name, {\r\n        transports: {\r\n            file: {\r\n                level: 'debug',\r\n                filename: 'server.log'\r\n            },\r\n            // Error file logging\r\n            file: {\r\n                level: 'error',\r\n                filename: 'error.log'\r\n            }\r\n        }\r\n    });\r\n```\r\n\r\nI also registering winston-file as a module but it doesn't work either:\r\n\r\n```\r\n    return pine(name, {\r\n        transports: {\r\n            file: {\r\n                name: 'file.debug',\r\n                level: 'debug',\r\n                filename: 'server.log'\r\n            },\r\n            // Error file logging\r\n            fileError: {\r\n                name: 'file.error',\r\n                level: 'error',\r\n                filename: 'error.log'\r\n            }\r\n        },\r\n        modules: {\r\n            fileError: {\r\n                name: 'winston/lib/winston/transports',\r\n                property: 'File'\r\n            }\r\n        }\r\n```\r\n\r\nBut this doesn't work either, because you're using [`definition.property` as the new transport name](https://github.com/krakenjs/pine/blob/master/lib/common.js#L123)."},"comment":{"url":"https://api.github.com/repos/krakenjs/pine/issues/comments/248861121","html_url":"https://github.com/krakenjs/pine/issues/6#issuecomment-248861121","issue_url":"https://api.github.com/repos/krakenjs/pine/issues/6","id":248861121,"user":{"login":"baldercm","id":5127287,"avatar_url":"https://avatars.githubusercontent.com/u/5127287?v=3","gravatar_id":"","url":"https://api.github.com/users/baldercm","html_url":"https://github.com/baldercm","followers_url":"https://api.github.com/users/baldercm/followers","following_url":"https://api.github.com/users/baldercm/following{/other_user}","gists_url":"https://api.github.com/users/baldercm/gists{/gist_id}","starred_url":"https://api.github.com/users/baldercm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baldercm/subscriptions","organizations_url":"https://api.github.com/users/baldercm/orgs","repos_url":"https://api.github.com/users/baldercm/repos","events_url":"https://api.github.com/users/baldercm/events{/privacy}","received_events_url":"https://api.github.com/users/baldercm/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T10:08:07Z","updated_at":"2016-09-22T10:08:07Z","body":"Hi, we're facing the same problem and I see this issue was created almost 2 years ago. Any chance this will be changed sometime?"}}
{"actor":{"display_login":"baldercm"}}