All Projects → rokde → laravel-slow-query-logger

rokde / laravel-slow-query-logger

Licence: MIT License
Slow Query Logger for Laravel 5.6

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-slow-query-logger

Sqldb Logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
Stars: ✭ 160 (+492.59%)
Mutual labels:  query, logger
Laravel Query Logger
📝 A dev tool to log all queries for laravel application.
Stars: ✭ 316 (+1070.37%)
Mutual labels:  query, logger
fastener
Functional Zipper for manipulating JSON
Stars: ✭ 54 (+100%)
Mutual labels:  query
react-query-builder
Simple, configurable react query builder
Stars: ✭ 37 (+37.04%)
Mutual labels:  query
polog
Логирование должно быть красивым
Stars: ✭ 26 (-3.7%)
Mutual labels:  logger
URLQueryItemEncoder
A Swift Encoder for encoding any Encodable value into an array of URLQueryItem.
Stars: ✭ 60 (+122.22%)
Mutual labels:  query
Lighty
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.
Stars: ✭ 49 (+81.48%)
Mutual labels:  logger
Minecraft-Server-Status
✅一个用于显示服务器在线信息及其他内容的网站
Stars: ✭ 22 (-18.52%)
Mutual labels:  query
loggin-js
📝 Customizable and expandable logger for Node.js
Stars: ✭ 20 (-25.93%)
Mutual labels:  logger
dlog
A super simple logger for Go. Supports stderr, logfiles, syslog and windows event log.
Stars: ✭ 16 (-40.74%)
Mutual labels:  logger
printer
A fancy logger yet lightweight, and configurable. 🖨
Stars: ✭ 65 (+140.74%)
Mutual labels:  logger
Git-API
Gets info from github and transfers into json styled data
Stars: ✭ 18 (-33.33%)
Mutual labels:  query
laravel-loggable
🎥 📽 🎞 Log your model changes in multiple ways
Stars: ✭ 58 (+114.81%)
Mutual labels:  logger
qss
QSS ➸ a simple query syntax for CSS element queries
Stars: ✭ 86 (+218.52%)
Mutual labels:  query
wp-mail-catcher
A fast, lightweight plugin that saves emails sent by your WordPress website.
Stars: ✭ 16 (-40.74%)
Mutual labels:  logger
WindowsMonitor
WMI namespaces and classes
Stars: ✭ 15 (-44.44%)
Mutual labels:  query
searchable
Pattern-matching search and reusable queries in laravel.
Stars: ✭ 28 (+3.7%)
Mutual labels:  query
nestlogger
Logger library for NestJs services
Stars: ✭ 28 (+3.7%)
Mutual labels:  logger
qml-logger
Plugin for file logging from QML
Stars: ✭ 17 (-37.04%)
Mutual labels:  logger
horse-logger
Middleware for access logging in HORSE
Stars: ✭ 25 (-7.41%)
Mutual labels:  logger

Slow Query Logger for Laravel

Latest Stable Version Latest Unstable Version License Total Downloads

Quickstart

composer require rokde/laravel-slow-query-logger

Look into your laravel.log file to see your messy queries.

Installation

Add to your composer.json following lines

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

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

Configuration

enabled

Enable the slow queries logger.

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_ENABLED. It is false by default.

channel

Sets the channel to log in.

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_CHANNEL. It is single by default.

log-level

Set the log-level for logging the slow queries.

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL. It is debug by default.

time-to-log

Only log queries longer than this value in microseconds.

You can set this value through environment variable LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG. It is 0.7 by default.

Usage

Start your application and look into your logs to identify the slow queries.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].