vlinde/laravel-bugster 问题修复 & 功能扩展

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

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

vlinde/laravel-bugster

Composer 安装命令:

composer require vlinde/laravel-bugster

包简介

A Laravel Nova tool.

README 文档

README

Latest Version on Packagist Total Downloads Build Status StyleCI

Auto-detects every log file in the storage/logs folder and sorts all the errors by date.

Update ^1.1.2 custom categories and directories were added ( check config file )

Installation

Via Composer

$ composer require vlinde/laravel-bugster

Publish vendor for migrations then migrate

$ php artisan vendor:publish --tag=migrations
$ php artisan vendor:publish --tag=bugster.config
$ php artisan migrate

Usage

Add function to exception handler found in 'app/Exceptions/Handler.php'

public function renderForConsole($output, Throwable $e) 
{
    $bugster = new BugsterLoadBugs();
    $bugster->saveError($output, $e, null, 'TERMINAL');
    
    parent::renderForConsole($output, $e);
}

public function render($request, Throwable $e) 
{
    $render = parent::render($request, $e);

    $bugster = new BugsterLoadBugs;
    $bugster->saveError($request, $e, $render->getStatusCode());
    
    return $render;
}

How to move data to SQL

$ php artisan bugster:movetosql

How to delete older bugs

$ php artisan bugster:delete

You can add these commands to cron

$schedule->command('bugster:movetosql')->daily('00:30');
$schedule->command('bugster:delete')->daily('01:00');
$schedule->command('bugster:notify:statistics')->dailyAt('12:00');
$schedule->command('bugster:count-status-codes')->dailyAt('03:00');

Nova

Register Bugster tool in NovaServiceProvider

use Vlinde\Bugster\Bugster;

public function tools()
{
    return [
        new Bugster;
    ];
}

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固