shootkiran/merobug 问题修复 & 功能扩展

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

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

shootkiran/merobug

最新稳定版本:v1.0.10

Composer 安装命令:

composer require shootkiran/merobug

包简介

Save Exceptions of Laravel into Database.Inspired by larabug

README 文档

README

MeroBug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x package for logging errors to database

Installation on laravel

You can install the package through Composer.

composer require shootkiran/merobug

Then publish the config and migration file of the package using the vendor publish command.

php artisan vendor:publish --provider="MeroBug\ServiceProvider"

And adjust config file (config/merobug.php) with your desired settings.

Note: by default only production environments will report errors. To modify this edit your MeroBug configuration.

Reporting unhandled exceptions

You can use MeroBug as a log-channel by adding the following config to the channels section in config/logging.php:

'channels' => [
    // ...
    'merobug' => [
        'driver' => 'merobug',
    ],
],

After that you can add it to the stack section:

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'merobug'],
    ],
    //...
],

PS: If you're using lumen, it could be that you don't have the logging.php file. So, you can use default logging file from framework core and make changes above.

php -r "file_exists('config/') || mkdir('config/'); copy('vendor/laravel/lumen-framework/config/logging.php', 'config/logging.php');"

License

The MeroBug package is open source software licensed under the license MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固