Example
var hapi = new Hapi.Server('127.0.0.1', 8080); hapi.pack.register({ plugin : require('good'), options : { reporters : [ { reporter : require('good-rollbar'), args : [ { accessToken : 'YOUR ROLLBAR ACCESS TOKEN', // Any option you can pass as the second parameter to rollbar.init // See https://rollbar.com/docs/notifier/node_rollbar/#configuration-reference config : { environment : process.env.NODE_ENV || 'development', root : process.cwd(), verbose : false } } ] } ] }}, function(err) { if (err) { console.log(err); return; }});