Important
This plugin is no longer maintained.
Craft integration with error monitoring service Rollbar.
To install Rollbar, follow these steps:
- Download & unzip the file and place the
rollbardirectory into yourcraft/pluginsdirectory - Install plugin in the Craft Control Panel under Settings > Plugins
Rollbar works on Craft 2.4.x and Craft 2.5.x.
You’ll need to create a rollbar.php file in your craft/config directory and set your server access token via the accessToken configuration item.
// craft/config/rollbar.php
return [
'accessToken' => 'sAWNXugaQ2pusR9FqjGvTwyNaTV',
];You can use this plugin in your own plugins simply by using Craft’s internal logging feature, however should you want to report exceptions or something directly you may do so via the service.
// Reporting exceptions
try {
throw new \Exception('Something went wrong!');
} catch (\Exception $e) {
craft()->rollbar->reportException($e);
}// Logging
craft()->rollbar->reportMessage('Something happened.', \Craft\LogLevel::Info, [
'foo' => 'bar',
]);