Skip to content

TheoGibbons/laravel-slow-query-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slow Query Logger for Laravel

Latest Stable Version Latest Unstable Version License Total Downloads

Quickstart

composer require rokde/laravel-slow-query-logger

Add to providers in config/app.php:

Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider::class,

Installation

Add to your composer.json following lines

"require": {
	"rokde/laravel-slow-query-logger": "~0.0"
}

Add Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider::class, to providers in config/app.php.

Run php artisan vendor:publish --provider="Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider"

Configuration

time-to-log

Only log queries longer than this value in microseconds.

environments

Set the enabled environments to log slow queries.

log-level

Set the log-level for logging the slow queries.

Usage

Nothing to do after adding to /config/app.php. Watch your logs.

About

Slow Query Logger for Laravel 5.2

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%