PHPackages                             gilg4mesh/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. gilg4mesh/monolog-mysql

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

gilg4mesh/monolog-mysql
=======================

Laravel 5.5+ MySQL driver for Monolog

0.1.8(8y ago)41.5k1MITPHPPHP &gt;=5.5.9

Since Apr 7Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (10)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 gilg4mesh/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.

```
php artisan migrate

```

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

[](#application-integration)

In your application `bootstrap/app.php` add:

```
$app->configureMonologUsing(function($monolog) use($app) {
    $monolog->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
});
```

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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 ~35 days

Recently: every ~65 days

Total

9

Last Release

3040d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16600750?v=4)[N.M.](/maintainers/gilg4mesh)[@Gilg4mesh](https://github.com/Gilg4mesh)

---

Top Contributors

[![markhilton](https://avatars.githubusercontent.com/u/1205145?v=4)](https://github.com/markhilton "markhilton (16 commits)")[![Gilg4mesh](https://avatars.githubusercontent.com/u/16600750?v=4)](https://github.com/Gilg4mesh "Gilg4mesh (5 commits)")

---

Tags

loglaravelmysqlmonologlaravel55

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gilg4mesh-monolog-mysql/health.svg)](https://phpackages.com/packages/gilg4mesh-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)
