rollbar-hapi
A Hapi plugin for rollbar painless integration
installation
npm install rollbar-hapi --save
Use of
server.register({
register: require('./rollbar/index'),
options: {
accessToken: '',
environment: '', // optional, defaults to process.env.NODE_ENV
handleUncaughtExceptions: true // optional, defaults to false
}
}, function (err) {
if (err) throw err;
});
Exposes
server.plugins['rollbar-hapi'].rollbar // the rollbar module, already initialised
The exposed `rollbar` above can be used to access rollbar's `log`, `debug`, `info`, `warning`,
`error`, and `critical` methods