2017 © Pedro Peláez
 

library laravel-slow-query-logger

Slow Query Logger for Laravel

image

rokde/laravel-slow-query-logger

Slow Query Logger for Laravel

  • Wednesday, July 25, 2018
  • by rokde
  • Repository
  • 1 Watchers
  • 8 Stars
  • 2,250 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 29 % Grown

The README.md

Slow Query Logger for Laravel

Latest Stable Version Latest Unstable Version License Total Downloads, (*1)

Quickstart

composer require rokde/laravel-slow-query-logger

Look into your laravel.log file to see your messy queries., (*2)

Installation

Add to your composer.json following lines, (*3)

"require": {
    "rokde/laravel-slow-query-logger": "^1.*"
}

Run php artisan vendor:publish --provider="Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider", (*4)

Configuration

enabled

Enable the slow queries logger., (*5)

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_ENABLED. It is false by default., (*6)

channel

Sets the channel to log in., (*7)

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_CHANNEL. It is single by default., (*8)

log-level

Set the log-level for logging the slow queries., (*9)

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL. It is debug by default., (*10)

time-to-log

Only log queries longer than this value in microseconds., (*11)

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG. It is 0.7 by default., (*12)

Usage

Start your application and look into your logs to identify the slow queries., (*13)

The Versions

25/07 2018

dev-master

9999999-dev

Slow Query Logger for Laravel

  Sources   Download

MIT

The Requires

 

by Robert Kummer

25/07 2018

1.0.0

1.0.0.0

Slow Query Logger for Laravel

  Sources   Download

MIT

The Requires

 

by Robert Kummer

28/06 2016

0.0.1

0.0.1.0

Slow Query Logger for Laravel

  Sources   Download

MIT

The Requires

 

by Robert Kummer