@soxhub/rollbar-hapi

0.0.11 • Public • Published

rollbar-hapi

A Hapi plugin for rollbar painless integration

GitHub license Travis Coveralls npm npm GitHub stars

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

Package Sidebar

Install

npm i @soxhub/rollbar-hapi

Weekly Downloads

1

Version

0.0.11

License

none

Last publish

Collaborators

  • rajivm