flyingluscas/bug-notifier 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flyingluscas/bug-notifier

Composer 安装命令:

composer require flyingluscas/bug-notifier

包简介

Get notified every time an exception is thrown in your application.

README 文档

README

Latest Version on Packagist Software License Build Status StyleCI SensioLabs Insight Quality Score Total Downloads

This is a Laravel 5.x package to help you track down bugs on your applications by using notifications.

BugNotifier will catch the exceptions thrown by Laravel and notify you through e-mail.

Install

Via Composer

$ composer require flyingluscas/bug-notifier

Usage

1. Service Provider

Add the BugNotifierServiceProvider under the providers section on config/app.php file.

'providers' => [
    // ...
    FlyingLuscas\BugNotifier\BugNotifierServiceProvider::class,
],

2. Configuration

Run this command in your terminal to publish the configuration file.

$ php artisan vendor:publish --provider="FlyingLuscas\BugNotifier\BugNotifierServiceProvider"

This command will generate the config/bugnotifier.php config file.

Inside the configuration file, you can add the environments that BugNotifier should watch for exceptions, configure a list of exceptions that should be ignored and choose the driver used to send the notifications.

3. Setting up

Ok, now that our service provider is in place and our configuration file is set, let's set up the BugNotifier to watch for exceptions in our application.

Go to your app/Exceptions/Handler.php file, and scroll down to the report method, this method is very important, here you can intercept any exceptions thrown by Laravel, so use the Notify facade to set it up.

use FlyingLuscas\BugNotifier\Facades\Notify;

// ...

public function report(Exception $exception)
{
    parent::report($exception);

    Notify::exception($exception);
}

And that's it, you are ready to track down every exception thrown by your application and be notified about it, if you wanna build your own notification driver, see this wiki for more information.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email lucas.pires.mattos@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 144
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 24
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固