lackoxygen/exception-push

1.0.0 2022-10-20 06:20 UTC

This package is auto-updated.

Last update: 2024-10-20 10:26:09 UTC


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');