laravel-exception-notify- Support Laravel abnormal monitoring notification for multiple channels (Swarms, Flybook Swarms, Server Jam, Enterprise WeChat Swarms, and Swarms).

function

  • Monitor sending Laravel application exceptions
  • Support a variety of channels (pin group robot, fly book group robot, Server sauce, enterprise WeChat group robot, information)
  • Customize the exception message data sent

The source code

  • https://github.com/guanguans/laravel-exception-notify

Related projects

  • https://github.com/guanguans/notify
  • https://github.com/guanguans/yii-log-target

Environmental requirements

  • Laravel > = 5.5

The installation

$ composer require guanguans/laravel-exception-notify -vvv

configuration

Publishing service

$ php artisan vendor:publish --provider="Guanguans\\LaravelExceptionNotify\\ExceptionNotifyServiceProvider"

Request channel token and other information

  • Nail swarm robots
  • Flying book swarm robots
  • Server sauce
  • Enterprise WeChat swarm robots
  • Interest to know

Configuration file to configure tokens and other information

config/exception-notify.php

use

Modify theapp/Exceptions/Handler.phpIn the filereportmethods

Public function report(Exception $Exception) {$this->shouldReport($Exception) \ExceptionNotifier::report($exception); // // or // $this->shouldReport($exception) and app('exception.notifier')->report($exception); // // or // $this->shouldReport($Exception) and \Guanguans\ LaravelExceptionNotifier ::report($Exception); parent::report($exception); }

Notice the results