bogsey/yii-airbrake

将yii中的错误和异常发送到Airbrake服务器

安装: 787

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

开放问题: 1

类型:yii-extension

dev-master 2013-09-30 10:41 UTC

This package is not auto-updated.

Last update: 2024-09-23 16:07:51 UTC


README

允许将yii中的错误和异常发送到airbrake服务器。

用法

通过在composer.json文件的"require"部分添加Bogsey/yii-airbrake并运行composer update来安装yii-airbrake。这将安装组件以及php-airbrake库。

然后更新您的配置文件如下

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',
      ),
      ...
  ),

您应该在Airbrake服务器上看到您的异常和错误