rpr / swoft-sentry
Sentry log component for Swoft2.0
Installs: 1 097
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- sentry/sentry: 1.10.0
- swlib/saber: ^1.0
- swoft/framework: ^2.0
Requires (Dev)
- phpunit/phpunit: ^7.5
- swoft/swoole-ide-helper: dev-master
This package is auto-updated.
Last update: 2025-03-18 15:11:36 UTC
README
Sentry log component for Swoft2.0
Usage:
install
composer require rpr/sowft-sentry
sentry log definition 编辑 app/bean.php 添加如下内容定义
'sentryHandler' => [ 'class' => \Gaodeng\SwoftSentry\SentryHandler::class, 'dsn' => 'YOUR SENTRY DSN', 'formatter' => '${lineFormatter}', 'curlMethod'=> 'co', //curlMethod可以是co,async和exec 'levels' => 'error,info', //2.0.1支持直接逗号分隔的字符串 ], 'logger' => [ 'flushRequest' => false, 'enable' => true, 'json' => true, 'handlers' => [ '${sentryHandler}', //添加handler //... 其他handler ], ],