PHPackages                             ebethus/laravel-mysql-log-driver - 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. ebethus/laravel-mysql-log-driver

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

ebethus/laravel-mysql-log-driver
================================

Laravel 10+ MySQL driver for Monolog

v1.0.7(2y ago)03.3kMITPHPPHP &gt;=7.3.0

Since May 2Pushed 4mo agoCompare

[ Source](https://github.com/bethuxs/laravel-mysql-logger)[ Packagist](https://packagist.org/packages/ebethus/laravel-mysql-log-driver)[ Docs](https://github.com/itelmenko/laravel-mysql-logger)[ RSS](/packages/ebethus-laravel-mysql-log-driver/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (26)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.

**Compatible with Laravel 10, 11, and 12.**

### Installation

[](#installation)

```
composer require itelmenko/laravel-mysql-logger

```

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

```

Publish config using Laravel Artisan CLI.

```
php artisan vendor:publish

```

Migrate tables.

```
php artisan migrate

```

Using
-----

[](#using)

### In config/logging.php

[](#in-configloggingphp)

```
