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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    2
  • 1.1.0
    0
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i good-rollbar

Weekly Downloads

2

Version

1.2.0

License

MIT

Last publish

Collaborators

  • colonyamericanhomes
  • bjy