maartenvr98/cakephp-bugsnag 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

maartenvr98/cakephp-bugsnag

最新稳定版本:1.3.0

Composer 安装命令:

composer require maartenvr98/cakephp-bugsnag

包简介

Bugsnag log engine for CakePHP.

README 文档

README

Provides as custom log engine for Bugsnag.

Requirements

  • CakePHP 4.x
  • PHP 8.x

Installation

[Using Composer]

composer require maartenvr98/cakephp-bugsnag

Enable plugin

Load the plugin in your app's src/Application file:

$this->addPlugin('Bugsnag');

Configuration

Configure the API-Key for Bugsnag in your app's config/app.php file:

'Bugsnag' => [
    'enabled'      => true,
    'apiKey'       => 'YOUR_API_KEY',
    'releaseStage' => 'development'
]

For a complete list of all available options, please refer to Bugsnag's documentation. This plugin doesn't know any limitation, you can use all configuration settings which are listed in Bugsnag's documentation. Please keep in mind that you need to remove the set prefix for each Bugsnag option. setFilters becomes filters, setReleaseStage becomes releaseStage and so on.

Events

If you want to modify the Bugsnag notification before you send it to the their API, you can do this easily with an event listener. You only need to listen to the following event:

Log.Bugsnag.beforeNotify

How you can listen to events is detailed described in Cake's documentation. This plugin comes with a ready to use Listener to provide you the best Bugsnag experience. I suggest to load this listener even if you write your own. You can configure the built in listener in your app's config/bootstrap.php as follows:

use Bugsnag\Listener\BugsnagListener;

EventManager::instance()->on(new BugsnagListener());

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固