Magento 2
Rollbar error monitoring integration for Magento projects | Support Level: Not Supported
Quick Start
Before installing the Rollbar module, make sure that you can run
bin/magento setup:upgradein your Magento app without problems.
- Add
rollbar/rollbar-magento2as a dependency incomposer.jsonof your project and runcomposer update. - Add your Rollbar post server access token to
app/etc/env.phpunderrollbarkey, ie:
'rollbar' => [
'access_token' => '[YOUR ACCESS TOKEN]'
]
- Add any additional Rollbar configuration in
app/etc/env.phpunder therollbarkey. bin/magento module:enable Rollbar_Magento2.bin/magento setup:upgrade.
Usage and Reference
The module should automatically report all PHP errors and exceptions in your Magento2 app. If you wish to add any manual logging in your app's code, use the standard Rollbar PHP \Rollbar\Rollbar::log method. \Rollbar\Rollbar::init has been invoked automatically already with settings from app/etc/env.php.
Help / Support
If you run into any issues, please email us at [email protected]
For bug reports, please open an issue on GitHub.
For more information on rollbar-php, please see the docs here.
Updated about 1 year ago