PHPackages                             pianqifei/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. pianqifei/laravel-query-logger

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

pianqifei/laravel-query-logger
==============================

A dev tool to log all queries for laravel application.

v1.0.0(6y ago)0111MITPHP

Since Mar 2Pushed 6y agoCompare

[ Source](https://github.com/pianqifei/laravel-query-log)[ Packagist](https://packagist.org/packages/pianqifei/laravel-query-logger)[ RSS](/packages/pianqifei-laravel-query-logger/feed)WikiDiscussions master Synced yesterday

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

 Laravel Query Logger
======================

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

 📝 A dev tool to log all queries for Laravel application use separate from framework's log.

Installing
----------

[](#installing)

```
$ composer require pianqifei/laravel-query-logger --dev -vvv
```

php artisan vendor:publish --provider="Pqf\\LaravelQueryLogger\\ServiceProvider" 发布querylog配置文件 自定义日志记录开关和日志频道

Laravel Query Logger will be enabled when `QUERY_LOG` is `true`.

> Please keep the `--dev` option.

Usage
-----

[](#usage)

```
$ tail -f ./storage/logs/laravel-y-m-d.log
```

```
[2019-06-05 14:52:14] local.DEBUG: [800μs] select count(*) as aggregate from `discussions` where `discussions`.`deleted_at` is null | GET: http://laravel.app/discussions
[2019-06-05 14:52:14] local.DEBUG: [1.07ms] select * from `discussions` where `discussions`.`deleted_at` is null order by `is_top` desc, `created_at` desc limit 15 offset 0 | GET: http://laravel.app/discussions
[2019-06-05 14:52:14] local.DEBUG: [3.63s] select `tags`.*, `taggables`.`taggable_id` as `pivot_taggable_id`, `taggables`.`tag_id` as `pivot_tag_id` from `tags` inner join `taggables` on `tags`.`id` = `taggables`.`tag_id` where `taggables`.`taggable_id` in ('1', '2', '3', '4', '5', '6', '7', '8') and `taggables`.`taggable_type` = 'App\\Models\\Discussion' order by `order_column` asc | GET: http://laravel.app/discussions
[2019-06-05 14:52:14] local.DEBUG: [670μs] select * from `users` where `users`.`id` in ('1', '2', '4') and `users`.`deleted_at` is null | GET: http://laravel.app/discussions
...

```

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2263d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26913071?v=4)[pianqifei](/maintainers/pianqifei)[@pianqifei](https://github.com/pianqifei)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[regulus/activity-log

A clean and simple Laravel 5 activity logger for monitoring user activity on a website or web application.

164220.1k2](/packages/regulus-activity-log)

PHPackages © 2026

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