lackoxygen / exception-push
异常推送
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lackoxygen/exception-push
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');