//Installation
//Install the Rollbar rollbar.js package using npm:
// npm install --save rollbar
// include and initialize the rollbar library with your access token
var Rollbar = require('rollbar')
var rollbar = new Rollbar({
accessToken: '<ACCESS_TOKEN>',
captureUncaught: true,
captureUnhandledRejections: true,
})
// record a generic message and send it to Rollbar
rollbar.log('Hello world!')