dev-master
9999999-devSends errors and exceptions in yii to an Airbrake server
BSD-3-Clause
The Requires
by Mark Joyner
yii airbrake
Wallogit.com
2017 © Pedro Peláez
Sends errors and exceptions in yii to an Airbrake server
Allows errors and exceptions in yii to be sent to an airbrake server., (*1)
yii-airbrake is installed by adding Bogsey/yii-airbrake to the "require" section of your composer.json file and running composer update.
This will install both the component and also the php-airbrake library., (*2)
Next update your config file as follows:, (*3)
return array(
...
'aliases' => array(
...
'Airbrake' => 'route to php-airbrake.src.Airbrake', // This is needed for the namespacing to work
...
),
...
'components' => array(
...
'errorHandler' => array(
'class' => 'Route to MErrorHandler', // where composer puts your required file (eg. vendor)
'errorAction' => 'site/error',
'APIKey' => 'YOUR API KEY',
'options' => array( // configuration options
'host' => 'Airbrake Host Server',
),
...
),
You should then see your exceptions and errors appearing on your Airbrake server, (*4)
Sends errors and exceptions in yii to an Airbrake server
BSD-3-Clause
yii airbrake