PHPackages                             anym0re/monolog-mysql - 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. [Database &amp; ORM](/categories/database)
4. /
5. anym0re/monolog-mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

anym0re/monolog-mysql
=====================

Laravel 8 MySQL driver for Monolog

1.0.1(4y ago)028MITPHPPHP ^7.0|^8.0

Since Jul 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/anym0re/monolog-mysql)[ Packagist](https://packagist.org/packages/anym0re/monolog-mysql)[ Docs](https://github.com/anym0re/monolog-mysql)[ RSS](/packages/anym0re-monolog-mysql/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Laravel Monolog MySQL Handler.
------------------------------

[](#laravel-monolog-mysql-handler)

This package will log errors into MySQL database instead storage/log/laravel.log file.

### Installation

[](#installation)

```
composer require anym0re/monolog-mysql
```

Open up `config/app.php` and find the `providers` key.

```
'providers' => array(
    // ...
    Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider::class,
);
```

Publish config using Laravel Artisan CLI.

```
php artisan vendor:publish
```

Migrate tables - you may want to [configure enviornment](#environment-configuration) beforehand.

```
php artisan migrate
```

Application Integration
-----------------------

[](#application-integration)

In your application `config/logging.php` add:

```
use Logger\Monolog\Handler\MysqlHandler;

// ...

'channels' => [
    // ...
    'mysql' => [
        'driver' => 'monolog',
        'handler' => MysqlHandler::class,
        'level' => 'debug',
    ],
];
```

Environment configuration
-------------------------

[](#environment-configuration)

If you wish to change default table name to write the log into or database connection use following definitions in your .env file

```
DB_LOG_TABLE=logs
DB_LOG_CONNECTION=mysql
```

Credits
-------

[](#credits)

Based on:

- \[Pedro Fornaza\] ()

###  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

Maturity58

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

Total

2

Last Release

1760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/960f43a7f865fa3af2f239b2b87fe4aafe86f04e7f6c18bfdcf1eef91d5e093a?d=identicon)[anym0re](/maintainers/anym0re)

---

Top Contributors

[![cccccc1](https://avatars.githubusercontent.com/u/32960212?v=4)](https://github.com/cccccc1 "cccccc1 (2 commits)")

---

Tags

loglaravelmysqlmonologlaravel8

### Embed Badge

![Health badge](/badges/anym0re-monolog-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/anym0re-monolog-mysql/health.svg)](https://phpackages.com/packages/anym0re-monolog-mysql)
```

###  Alternatives

[wazaari/monolog-mysql

A handler for Monolog that sends messages to MySQL

140884.1k6](/packages/wazaari-monolog-mysql)[markhilton/monolog-mysql

Laravel 8 MySQL driver for Monolog

40140.8k](/packages/markhilton-monolog-mysql)[itelmenko/laravel-mysql-logger

Laravel MySQL driver for Monolog

21141.9k](/packages/itelmenko-laravel-mysql-logger)[bradmkjr/monolog-wordpress

A handler for Monolog that sends messages to MySQL via WordPress Functions

2817.1k](/packages/bradmkjr-monolog-wordpress)[addapp/laravel-query-log

Logs full mysql queries.

135.4k](/packages/addapp-laravel-query-log)

PHPackages © 2026

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