How to use the rollbar.Rollbar function in rollbar

To help you get started, we’ve selected a few rollbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dreamnettech / dreamtime / src / electron / modules / rollbar.js View on Github external
init() {
    if (!this.can()) {
      return
    }

    const config = this.getConfig()

    try {
      this._rollbar = new Rollbar(config)
      this.isEnabled = true

      debug('Rollbar initialized!', config)
    } catch (err) {
      console.warn('Error at connecting to Rollbar', err)
    }
  },