PHPackages                             schmidtmilena/laravel-database-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. schmidtmilena/laravel-database-logger

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

schmidtmilena/laravel-database-logger
=====================================

Database logger for Laravel 8

2.1.4(5y ago)29MITPHPPHP ^7.4|^8.0

Since Feb 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/milenagrygier/laravel-database-logger)[ Packagist](https://packagist.org/packages/schmidtmilena/laravel-database-logger)[ Docs](https://github.com/schmidtmilena/laravel-database-logger)[ GitHub Sponsors](https://github.com/schmidtmilena)[ RSS](/packages/schmidtmilena-laravel-database-logger/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Database logger for Laravel 8
=============================

[](#database-logger-for-laravel-8)

The schmidtmilena/laravel-database-logger package provides custom log handler for Laravel 8 that can store log events to SQL databases.

[![Latest Version on Packagist](https://camo.githubusercontent.com/0ba47ea94372d8eefcdce94b22aab6a7e8d9a8e934c284389f97e6c98929477b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7363686d6964746d696c656e612f6c61726176656c2d64617461626173652d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/schmidtmilena/laravel-database-logger)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4cc9814260b0360ab6caa71d6b5bae62c43ccd2dbd32848ce4ce0b547dca31e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7363686d6964746d696c656e612f6c61726176656c2d64617461626173652d6c6f676765722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/schmidtmilena/laravel-database-logger/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3961d9cf8ed7eb7526064a7a20751a6ebc7f2149044f0af65b9ddd94b6780290/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7363686d6964746d696c656e612f6c61726176656c2d64617461626173652d6c6f676765722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/schmidtmilena/laravel-database-logger/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/262b075543b2860b158d493f89484e5e305742a8dfb8b764efdb7b1409dcf63c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7363686d6964746d696c656e612f6c61726176656c2d64617461626173652d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/schmidtmilena/laravel-database-logger)

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

[](#installation)

You can install the package via composer:

```
composer require schmidtmilena/laravel-database-logger
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag=migrations
```

Usage
-----

[](#usage)

After publishing migration run:

```
php artisan migrate
```

Add custom driver to your logging.php file:

```
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['mysql'],
        ],

    // [...]
    'mysql' => [
        'driver' => 'monolog',
        'via' => SchmidtMilena\DbLogger\Monolog::class,
        'handler' => SchmidtMilena\DbLogger\DbLoggerHandler::class,
        'formatter' => SchmidtMilena\DbLogger\Formatter::class,
        'name' => 'mysqllogger'
    ],
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Milena Schmidt](https://github.com/SchmidtMilena)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

1903d ago

Major Versions

1.1.1 → 2.1.32021-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0759528634a7ead436ca582c00d3fa3f717509596c288a885833ddc550631a3?d=identicon)[Milena Grygier](/maintainers/Milena%20Grygier)

---

Top Contributors

[![milenagrygier](https://avatars.githubusercontent.com/u/59263221?v=4)](https://github.com/milenagrygier "milenagrygier (27 commits)")

---

Tags

schmidtmilenalaravel-database-logger

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/schmidtmilena-laravel-database-logger/health.svg)

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

###  Alternatives

[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)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

122163.3k2](/packages/bilfeldt-laravel-request-logger)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)

PHPackages © 2026

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