good-rollbar

1.2.0 • Public • Published

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;
  }
});
 

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i good-rollbar

    Weekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • colonyamericanhomes
    • bjy