web-and-cow/wac-sentry
最新稳定版本:2.0.2
Composer 安装命令:
composer require web-and-cow/wac-sentry
包简介
Plugin to connect a CakePHP project to your Sentry account
README 文档
README
Plugin CakePHP to connect a CakePHP project to your Sentry account.
You can find IP of client and users.id in the Sentry issue.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is :
CakePHP 3
composer require web-and-cow/wac-sentry:"^1.0.0"
CakePHP 4
composer require web-and-cow/wac-sentry:"^2.0.0"
Load the plugin :
CakePHP 3
bin/cake plugin load WacSentry -b
CakePHP 4
bin/cake plugin load WacSentry
And add the configuration to your app.php :
'Sentry' => [
'dsn' => 'https://XXXXXXXXXX@sentry.io/XXXXXX', // The DSN PHP Key of Sentry
'avoid_bot_scan_errors' => true, // Default true : if true, MissingControllerException and MissingPluginException aren't sent to Sentry to avoid bot scan errors
'userFields' => [ // List of user session values sent to Sentry
'id',
'role',
...
],
'unauthorizedWordsInUrl' => [ // If a word of this array is in the url, the error event will not be sent to Sentry
'robots.txt',
'wp-admin',
...
]
]
统计信息
- 总下载量: 6.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-25