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

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

chanshige/laravel-query-logger
==============================

A Laravel database queries logger provider.

v4.0.0(2y ago)3361[1 issues](https://github.com/chanshige/Laravel.QueryLogger/issues)MITPHPPHP ^8.1

Since Sep 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chanshige/Laravel.QueryLogger)[ Packagist](https://packagist.org/packages/chanshige/laravel-query-logger)[ RSS](/packages/chanshige-laravel-query-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (12)Versions (13)Used By (0)

[![Packagist](https://camo.githubusercontent.com/0bb895cf80dd6d6c0dfbcc1d6378528345fe57f73ed4a556d06e41e7d312748f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76322e302e312d626c75652e737667)](https://packagist.org/packages/chanshige/laravel-query-logger)[![Build Status](https://camo.githubusercontent.com/b44088fb5bf1e8130bd5f3d39711d7e99e3c72e17ba545f288a2e6b529203c79/68747470733a2f2f7472617669732d63692e636f6d2f6368616e73686967652f4c61726176656c2e51756572794c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/chanshige/Laravel.QueryLogger)

Laravel.QueryLogger
===================

[](#laravelquerylogger)

Application上で実行されるSQLクエリを全てlogへ出力します。

\*\* notice \*\*
APP\_DEBUG/APP\_ENV 等のモードに依存していません。
composer "--dev" オプションを外してインストールした場合、
production環境等でも常に出力されることとなります。ご注意ください。

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

[](#installation)

with composer (require-dev)

```
$ composer require --dev chanshige/laravel-query-logger
```

Usage
-----

[](#usage)

remove cache

```
$ php artisan clear-compiled

```

=&gt; Output Default Log Channel

##### When specifying any log driver (option)

[](#when-specifying-any-log-driver-option)

append to config/logging.php

```
'query_logger' => [
    // logger driver or channel name
    'driver' => 'stack'
]

```

[Docs](https://laravel.com/docs/9.x/logging#configuration)

test
----

[](#test)

`$ composer tests`

License
-------

[](#license)

MIT

Author
------

[](#author)

[chanshige](https://twitter.com/chanshige)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~160 days

Recently: every ~280 days

Total

8

Last Release

930d ago

Major Versions

v0.1.0 → v1.0.02020-09-27

v1.0.0 → v2.0.02020-09-29

v2.0.3 → v3.0.02022-01-25

v3.0.0 → v4.0.02023-10-25

PHP version history (4 changes)v0.1.0PHP ^7.3.11

v2.0.2PHP ^7.3|^8.0

v3.0.0PHP ^8.0

v4.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![chanshige](https://avatars.githubusercontent.com/u/1973281?v=4)](https://github.com/chanshige "chanshige (36 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[spatie/laravel-activitylog

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

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

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)

PHPackages © 2026

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