Download the PHP package brrittoo/query-debug-tools without Composer
On this page you can find all versions of the php package brrittoo/query-debug-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package query-debug-tools
Query Logger for Laravel
Effortlessly log, monitor, and debug all database queries in your Laravel applications with detailed execution insights, source tracking, and customizable storag
Features
- 📝 Comprehensive query logging with execution time tracking
- 🐌 Slow query detection with customizable threshold
- 📂 Configurable log storage and retention
- 🔍 Backtrace tracking to identify query origins
- 🖥️ Support for both web requests and console commands
- � Job/queue query logging support
- ⚙️ Flexible configuration options
- 📊 Multiple log formats (plain text or JSON)
Installation
Install via Composer:
Publish the configuration file:
Configuration
The published configuration is located at config/querylogger.php:
Usage
Configuration
Set these in your .env:
Middleware
Add query.logger middleware to your routes or groups if not using auto-registration:
Manual Logging
Enable query logging anywhere:
Command Logging
Enable query logging inside an Artisan command:
Job Logging
Enable query logging inside a queued job:
Log Format
plain— human-readable logsjson— structured logs for programmatic analysis
Contributing
- Fork the repository
- Create your feature branch:
git checkout -b feature/MyFeature - Commit your changes:
git commit -m 'Add new feature' - Push to the branch:
git push origin feature/MyFeature - Submit a pull request
🔗 Repository Link: https://github.com/ataulgalib/query-debug
License
This package is open-sourced under the MIT license.
Author
Ataul Galib
Email: [email protected]
All versions of query-debug-tools with dependencies
illuminate/support Version ^9.0|^10.0
illuminate/database Version ^9.0|^10.0
illuminate/http Version ^9.0|^10.0
illuminate/console Version ^9.0|^10.0
ext-json Version *
nesbot/carbon Version ^2.0