定制 label305/bugsnag-cakephp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

label305/bugsnag-cakephp

最新稳定版本:0.1.1

Composer 安装命令:

composer require label305/bugsnag-cakephp

包简介

Bugsnag Notifier for CakePHP applications

README 文档

README

This plugin allows you to use Bugsnag with CakePHP projects. Get notified when your application breaks and view detailed logs and stack traces on specific exceptions and errors.

The BugsnagErrorHandler class extends the default CakePHP ErrorHandler so the functions of the built in class continue to work.

Quick Start

Use one of the following methods to include this library in your project.

  1. Install this plugin with Composer
  2. Place the files

Once you've included this library you should modify: app/Config/core.php. Make sure to enter your own API key.

Configure::write('BugsnagCakephp.apikey', '{yourbugsnagapikey}');

Configure::write('Exception', array(
    'handler' => 'BugsnagErrorHandler::handleException',
    'renderer' => 'ExceptionRenderer',
    'log' => true
));

Configure::write('Error', array(
    'handler' => 'BugsnagErrorHandler::handleError',
    'level' => E_ALL & ~E_DEPRECATED,
    'trace' => true
));

And make sure the plugin is loaded by adding the following line to: app/Config/bootstrap.php.

// place after the 'require' statement for the Bugsnag library.
App::uses('BugsnagErrorHandler', 'BugsnagCakephp.Lib');

Install with Composer

  1. Modify composer.json to include the following lines:

    "require": {
      "label305/bugsnag-cakephp": "0.1.*"
    },
    ...
    "extra": {
        "installer-paths": {
            "app/Plugin/{$name}/": ["label305/bugsnag-cakephp"]
        }
    }
  2. And run composer update.

  3. Require the Bugsnag PHP library in app/Config/bootstrap.php.

    require ROOT . DS . 'vendor' . DS . 'bugsnag' . DS . 'bugsnag' . DS . 'build' . DS . 'bugsnag.phar';

Install by placing

  1. Place the files from this repository in app/Plugin/BugsnagCakephp

  2. Download the latest bugsnag.phar to your PHP project.

  3. Require it in app/Config/bootstrap.php.

    require_once 'path' . DS . 'to' . DS . 'bugsnag.phar';
  4. Make sure the php extention mbstring is installed.

License

Copyright 2014 Label305 B.V.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

统计信息

  • 总下载量: 32.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 10
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2014-12-09