webmayak / yii2-log-github
此包的最新版本(dev-master)没有可用的许可证信息。
dev-master
2018-02-26 17:10 UTC
Requires
This package is auto-updated.
Last update: 2024-09-17 18:38:13 UTC
README
为 Yii2 日志系统提供 GithubTarget 组件。从应用程序异常中创建问题。您需要指定 GitHub 仓库名称、所有者名称以及您的 PAT(个人访问令牌),确保已启用具有 repo
权限的 PAT。
安装
composer require webmayak/yii2-log-github
用法
'components' => [ 'log' => [ 'targets' => [ 'github' => [ 'class' => 'webmayak\yii2LogGithub\GithubTarget', 'enabled' => true, 'except' => ['yii\web\HttpException:404', 'yii\web\HttpException:403'], 'levels' => ['error', 'warning'], 'accessToken' => '...', 'owner' => '...', 'repository' => '...', ], ], ], ],