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:upgrade
in your Magento app without problems.
- Add
rollbar/rollbar-magento2
as a dependency incomposer.json
of your project and runcomposer update
. - Add your Rollbar post server access token to
app/etc/env.php
underrollbar
key, ie:
'rollbar' => [
'access_token' => '[YOUR ACCESS TOKEN]'
]
- Add any additional Rollbar configuration in
app/etc/env.php
under therollbar
key. 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 3 months ago