//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!')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter