This plugin is now archived.
See: https://johnhenry.ie/articles/2024/08/error-reporting-with-rollbar-and-craft-cms for an alternative implementation of Rollbar.
This plugin provides an Rollbar integration for Craft CMS v3.x.
- PHP Exception reporting to Rollbar
- JS Exception reporting to Rollbar (optional)
This plugin requires Craft CMS 3.1 or later
To install Rollbar
, navigate to the Plugin Store section of your Craft control panel, search for Rollbar
, and click the Try button.
You can also add the package to your project using Composer.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require newism/craft-rollbar
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Rollbar.
First you'll need to setup a Rollbar account.
Once you have an account you'll be provided with an Access Key
.
To add the Afterpay payment gateway, go to Settings → Plugins → Rollbar and enter the access key.
You may then decide to configure your Rollbar gateway using a config file. An example file looks like:
<?php
return [
// Your project's post_server_item access token, which you can find in the Rollbar.com interface.
"accessToken" => '',
// See: https://docs.rollbar.com/docs/browser-js
"enableJs" => '',
// Your project's post_client_item access token, which you can find in the Rollbar.com interface.
'postClientItemAccessToken' => '',
// If you wish Rollbar to ignore any exception types, please provide the fully qualified name here, separated by a comma
'exceptionIgnoreList' => '',
];
- Implement logging levels
- More configuration options
If you've found a bug, or would like to make a feature request, head to the GitHub Repo and file an issue. Pull requests are also most welcome!
Get our attention on Twitter by using the #craftcms
hashtag and mentioning @newism
Ask a question via the Craft Stack Exchange and tag your question with plugin-newism-craft-rollbar
.
Any feedback, comments, questions or suggestions please email us at support at newism.com.au
.
You can try this plugin in a development environment for as long as you like.
For more information, see Craft's Commercial Plugin Licensing.
Brought to you by Newism