定制 credy/yii2-errbit 二次开发

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

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

credy/yii2-errbit

最新稳定版本:1.1.0

Composer 安装命令:

composer require credy/yii2-errbit

包简介

Logs errors to [errbit](https://github.com/errbit/errbit)

README 文档

README

Logs errors to errbit

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist credy/yii2-errbit "*"

or add

"credy/yii2-errbit": "*"

to the require section of your composer.json file.

Usage

Replace the default error handler with either \credy\errbit\WebErrorHandler or \credy\errbit\ConsoleErrorHandler:

...
    'components' => [
        'errorHandler' => [
            'class' => credy\errbit\ConsoleErrorHandler::className(),
            'errbitApiKey' => 'apikey',
            'errbitHost' => 'test.example.org',
        ],
    ],
...

or

...
    'components' => [
        'errorHandler' => [
            'class' => credy\errbit\ConsoleErrorHandler::className(),
            'errbitApiKey' => 'apikey',
            'errbitHost' => 'test.example.org',
        ],
    ],
...

You can pass additional options to errbitPHP:

...
    'components' => [
        'errorHandler' => [
            'class' => credy\errbit\ConsoleErrorHandler::className(),
            'errbitApiKey' => 'apikey',
            'errbitHost' => 'test.example.org',
            'errbit' => [
                'environment_name' => 'development',
            ],
        ],
    ],
...

To enable the js notifier:

...
    'components' => [
        'errorHandler' => [
            'class' => credy\errbit\WebErrorHandler::className(),
            'errbitApiKey' => 'apikey',
            'errbitHost' => 'test.example.org',
            'jsNotifier' => true,
        ],
    ],
...

You can pass additional options to the js plugin using the jsOptions property.

If the controller implements UserInfoInterface, the information returned by getErrbitUserInfo will also be sent to errbit.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固