0.0.11 • Published 6 years ago

@soxhub/rollbar-hapi v0.0.11

Weekly downloads
198
License
-
Repository
github
Last release
6 years ago

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