定制 debugmate/laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

debugmate/laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require debugmate/laravel

包简介

A package to help you tracking the project errors

README 文档

README

DebugMate is a beautiful error tracking package that will help your software team to track and fix errors.

Table Of Compatibility

Laravel Version DebugMate Version
^10 ^2.0
^11 ^3.0

Now you can install the package:

composer require debugmate/laravel

Run the following command to install the package files:

php artisan debugmate:install

Configuring DebugMate connection

After the installation, you should configure the connection with DebugMate main application. Open your .env file and check for this new env vars:

DEBUGMATE_DOMAIN=
DEBUGMATE_ENABLED=
DEBUGMATE_TOKEN=

DEBUGMATE_DOMAIN: You must set your DebugMate domain on this var. This way, our package will know where it should send the error data. If your DebugMate instance runs on a port different than the 80 or 443, you should add it too. E.g.: http://debugmate.mydomain.com:9001.

DEBUGMATE_ENABLED: With this var, you can control if DebugMate features will be available or not.

DEBUGMATE_TOKEN: On this var, you should set the project token. With this, you instruct DebugMate in which project the errors will be attached.

Reporting unhandled exceptions

You need to add the DebugMate as a log-channel by adding the following config to the channels section in config/logging.php:

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

After that you need to fill it on LOG_STACK env:

LOG_STACK=debugmate

Testing if everything works

By the end you're being able to send a fake exception to test connection

php artisan debugmate:test

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-11