承接 therencemanzo/slowquerylogger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

therencemanzo/slowquerylogger

最新稳定版本:v1.0.0

Composer 安装命令:

composer require therencemanzo/slowquerylogger

包简介

This librabry will logged all slow queries based on the threshold

README 文档

README

A Laravel 11 package for logging slow queries and optimizing database performance.

Features

  • Log Slow Queries: Logs slow database queries to the database.
  • Paginated Log Viewer: View slow queries with pagination.
  • Configurable: Allows configuration of slow query thresholds and route name.
  • Migration Publishing: Publishes migration files for easy integration with your application.

Installation

1. Install the Package

Run the following Composer command to install the package:

composer require therencemanzo/slowquerylogger

2. Publish the config

php artisan vendor:publish --provider="TherenceManzo\SlowQueryLogger\SlowQueryLoggerServiceProvider" --tag=config

3. Publish the migration

php artisan vendor:publish --provider="TherenceManzo\SlowQueryLogger\SlowQueryLoggerServiceProvider" --tag=migrations

4. Run the migration

php artisan migrate

5. Configure your .env

APP_DEBUG=true

For security it will disable the routing and viewing if set debug set to false but it will still log and save the slow queries in the background.

Test

Go to web browser and <APP_URL>/slow-queries you can configure the route and threshold in the config(slowquerlogger) file

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-18