{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/good/issues/559","repository_url":"https://api.github.com/repos/hapijs/good","labels_url":"https://api.github.com/repos/hapijs/good/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/good/issues/559/comments","events_url":"https://api.github.com/repos/hapijs/good/issues/559/events","html_url":"https://github.com/hapijs/good/issues/559","id":244369332,"number":559,"title":"Can't see any docs on how to add a custom stream","user":{"login":"ianbale","id":8401461,"avatar_url":"https://avatars0.githubusercontent.com/u/8401461?v=4","gravatar_id":"","url":"https://api.github.com/users/ianbale","html_url":"https://github.com/ianbale","followers_url":"https://api.github.com/users/ianbale/followers","following_url":"https://api.github.com/users/ianbale/following{/other_user}","gists_url":"https://api.github.com/users/ianbale/gists{/gist_id}","starred_url":"https://api.github.com/users/ianbale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianbale/subscriptions","organizations_url":"https://api.github.com/users/ianbale/orgs","repos_url":"https://api.github.com/users/ianbale/repos","events_url":"https://api.github.com/users/ianbale/events{/privacy}","received_events_url":"https://api.github.com/users/ianbale/received_events","type":"User","site_admin":false},"labels":[{"id":24848895,"url":"https://api.github.com/repos/hapijs/good/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"open","locked":false,"assignee":{"login":"arb","id":1591483,"avatar_url":"https://avatars0.githubusercontent.com/u/1591483?v=4","gravatar_id":"","url":"https://api.github.com/users/arb","html_url":"https://github.com/arb","followers_url":"https://api.github.com/users/arb/followers","following_url":"https://api.github.com/users/arb/following{/other_user}","gists_url":"https://api.github.com/users/arb/gists{/gist_id}","starred_url":"https://api.github.com/users/arb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arb/subscriptions","organizations_url":"https://api.github.com/users/arb/orgs","repos_url":"https://api.github.com/users/arb/repos","events_url":"https://api.github.com/users/arb/events{/privacy}","received_events_url":"https://api.github.com/users/arb/received_events","type":"User","site_admin":false},"assignees":[{"login":"arb","id":1591483,"avatar_url":"https://avatars0.githubusercontent.com/u/1591483?v=4","gravatar_id":"","url":"https://api.github.com/users/arb","html_url":"https://github.com/arb","followers_url":"https://api.github.com/users/arb/followers","following_url":"https://api.github.com/users/arb/following{/other_user}","gists_url":"https://api.github.com/users/arb/gists{/gist_id}","starred_url":"https://api.github.com/users/arb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arb/subscriptions","organizations_url":"https://api.github.com/users/arb/orgs","repos_url":"https://api.github.com/users/arb/repos","events_url":"https://api.github.com/users/arb/events{/privacy}","received_events_url":"https://api.github.com/users/arb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-07-20T13:50:02Z","updated_at":"2017-07-20T18:45:43Z","closed_at":null,"body":"I would like to know how to add a custom stream, but the docs are too vague and seem to expect previous knowledge that is not easy to identify. I'm fairly new to node.js, so apologies if I am asking about something that everyone else knows. I do not ask questions until I have exhausted every other avenue for finding the information that I need. In tis case, I have searched for just for about every search term that seems in any way relevant to what I want to achieve bit have come up empty handed.\r\n\r\nAll I want to do is customise an existing stream. I have take a copy of good-file/index.js and called it my-file.js and placed it in a folder /logger/\r\n\r\nI have require my module and instantiated it:\r\n\r\n```\r\nconst MyFileConstructor = require('./logger/my-file');\r\nconst MyFileLogger = new MyFileConstructor('./logs/api.txt')\r\n```\r\n\r\nNoe I need to add it to the options for Good:\r\n\r\n```\r\nreporters: {\r\n        searchRequests: [{\r\n            module: 'good-squeeze',\r\n            name: 'Squeeze',\r\n            args: [{\r\n                response: ['api'],\r\n                log: ['api'],\r\n                error: ['api'],\r\n            }]\r\n        },{\r\n            module : '**what goes here????? How do I reference my new logging module?**',\r\n            args : ['./logs/api.txt'],\r\n        }],\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hapijs/good/issues/comments/316794900","html_url":"https://github.com/hapijs/good/issues/559#issuecomment-316794900","issue_url":"https://api.github.com/repos/hapijs/good/issues/559","id":316794900,"user":{"login":"ianbale","id":8401461,"avatar_url":"https://avatars0.githubusercontent.com/u/8401461?v=4","gravatar_id":"","url":"https://api.github.com/users/ianbale","html_url":"https://github.com/ianbale","followers_url":"https://api.github.com/users/ianbale/followers","following_url":"https://api.github.com/users/ianbale/following{/other_user}","gists_url":"https://api.github.com/users/ianbale/gists{/gist_id}","starred_url":"https://api.github.com/users/ianbale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianbale/subscriptions","organizations_url":"https://api.github.com/users/ianbale/orgs","repos_url":"https://api.github.com/users/ianbale/repos","events_url":"https://api.github.com/users/ianbale/events{/privacy}","received_events_url":"https://api.github.com/users/ianbale/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T18:45:43Z","updated_at":"2017-07-20T18:45:43Z","body":"/Users/me/Source Code/my-app/logger/api\r\n\r\nMy module code is in /Users/me/Source Code/my-app/logger/api.js"}}
{"actor":{"display_login":"ianbale"}}