lichv / monolog-mysql
Laravel 5 MySQL driver for Monolog
Installs: 60
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lichv/monolog-mysql
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2025-10-26 08:38:27 UTC
README
MySQL driver for Laravel Monolog.
Installation
To get the lastest version of Theme simply require it in your composer.json file.
"lichv/monolog-mysql": "dev-master"
You'll then need to run composer install to download it and have the autoloader updated.
Open up config/app.php and find the providers key.
'providers' => array(
// ...
'Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider'
);
Publish config using artisan CLI.
php artisan config:publish lichv/monolog-mysql
Migrate tables.
php artisan migrate
Usage
Log::getMonolog()->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
Or in bootstrap/app.php:
$app->configureMonologUsing(function($monolog) use($app) { $monolog->pushHandler(new Logger\Monolog\Handler\MysqlHandler()); });
Credits
Based on:
- [Pedro Fornaza] (https://github.com/lichv/monolog-mysql)