定制 yatshub/yii2-google-cloud-error-reporting 二次开发

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

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

yatshub/yii2-google-cloud-error-reporting

最新稳定版本:v1.0.0

Composer 安装命令:

composer require yatshub/yii2-google-cloud-error-reporting

包简介

Google cloud error reporting real-time exception monitoring and alerting for Yii2

README 文档

README

Yii Framework

Google Cloud Error Reporting for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yatshub/yii2-google-cloud-error-reporting "*"

or add

"yatshub/yii2-google-cloud-error-reporting": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply generate a service account and configure your target as the following:

        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                ...
                'googleCloudErrorReporting' => [
                    'class' => 'yatshub\GoogleErrorReporting\ErrorReporting',
                    'levels' => ['error', 'warning'],
                    'except' => ['yii\web\HttpException:404'],
                    'projectId' => 'project-id',
                    'loggerInstance' => 'instance-log',
                    'clientSecretPath' => 'path/to/your/service/account/credentials.json',
                    'version' => 'dev or prod',
                    'service' => 'application name or any name for easy project tracking',
                ],
                ...
            ],
        ],

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-18