lackoxygen / exception-push
异常推送
1.0.0
2022-10-20 06:20 UTC
Requires
- php: >=7.4
- illuminate/bus: ^8.0
- illuminate/queue: ^8.0
- illuminate/support: ^8.0
- monolog/monolog: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.7
- phpunit/phpunit: ^9.5.10
README
安装
composer require lackoxygen/exception-push
配置文件
- config/tiktok.shop.php
[ 'agents' => [ Wx::class => [ 'key' => '', 'enable' => false //启用或停用 ], Ding::class => [ 'token' => '', 'secret' => '', 'enable' => false //启用或停用 ] ], 'client' => [ 'timeout' => 5.0, //超时时间 ], 'callbacks' => [ 'formatter' => null, //格式化内容 'dispatcher' => null //触发发送内容 ] ];
配置发布
php artisan vendor:publish --provider=Lackoxygen\\ExceptionPush\\ExceptionPushProvider
日志
use function Lackoxygen\ExceptionPush\notify as notify notify('hello world', 'debug');