PHPackages                             hoannc54/laravel-query-logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hoannc54/laravel-query-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

hoannc54/laravel-query-logger
=============================

Slow Query Logger for Laravel

1.0.5(5y ago)0114MITPHPPHP ^7.1.3

Since Oct 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hoannc54/laravel-query-logger)[ Packagist](https://packagist.org/packages/hoannc54/laravel-query-logger)[ RSS](/packages/hoannc54-laravel-query-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Slow Query Logger for Laravel
=============================

[](#slow-query-logger-for-laravel)

Quickstart
----------

[](#quickstart)

```
composer require hoannc54/laravel-query-logger

```

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

Installation
------------

[](#installation)

Add to your composer.json following lines

```
"require": {
	"hoannc54/laravel-query-logger": "^1.*"
}

```

Run `php artisan vendor:publish --provider="Workable\QueryLogger\QueryLoggerProvider"`

Configuration
-------------

[](#configuration)

### `enabled`

[](#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`

[](#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`

[](#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`

[](#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
-----

[](#usage)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

6

Last Release

1994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b66d7c5d42f6749eb11c3c49dfdd4e7bb415539c3597a6179b25f9425ee5c462?d=identicon)[hoannc](/maintainers/hoannc)

---

Top Contributors

[![hoannc54](https://avatars.githubusercontent.com/u/10738135?v=4)](https://github.com/hoannc54 "hoannc54 (6 commits)")

### Embed Badge

![Health badge](/badges/hoannc54-laravel-query-logger/health.svg)

```
[![Health](https://phpackages.com/badges/hoannc54-laravel-query-logger/health.svg)](https://phpackages.com/packages/hoannc54-laravel-query-logger)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[directorytree/metrics

Record metrics in your Laravel application

26027.8k](/packages/directorytree-metrics)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
