Skip to content

Bogsey/yii-airbrake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

yii-airbrake

Allows errors and exceptions in yii to be sent to an airbrake server.

Usage

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.

Next update your config file as follows:

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

About

Allows yii errors to be sent to an airbrake server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages