pedrofornaza / monolog-mysql
Laravel 5 MySQL driver for Monolog
Installs: 2 014
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2024-11-29 21:17:30 UTC
README
MySQL driver for Laravel Monolog.
Installation
To get the lastest version of Theme simply require it in your composer.json
file.
"pedrofornaza/monolog-mysql": "v0.1"
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(
// ...
Fornaza\Laravel\Provider\MonologMysqlHandlerServiceProvider::class,
);
Publish config using artisan CLI.
php artisan vendor:publish
Migrate tables.
php artisan migrate
Usage
Log::getMonolog()->pushHandler(new Fornaza\Monolog\Handler\MysqlHandler());
Or in bootstrap/app.php
:
$app->configureMonologUsing(function($monolog) use($app) { $monolog->pushHandler(new Fornaza\Monolog\Handler\MysqlHandler()); });
Credits
Based on: