v0.1
0.1.0.0A Laravel package, helps to log into database and send email alerts
MIT
The Requires
- php >=5.5.0
- illuminate/database ~5.0
- illuminate/support ~5.0
by Kemal Yenilmez
laravel log monitoring alert mailing
Wallogit.com
2017 © Pedro Peláez
A Laravel package, helps to log into database and send email alerts
I've decided to put Gui and library into a standalone package. This will be helpful for development and testing., (*1)
https://github.com/gazatem/glog, (*2)
Add the following to your composer.json and run composer update, (*3)
{
"require": {
"gazatem/dblogger": "dev-master"
}
}
Don't forget to dump composer autoload, (*4)
composer dump-autoload
Open your config/app.php add following line in the providers array, (*5)
Gazatem\DBLogger\DBLoggerServiceProvider::class
Then in your bootstrap/app.php add / update your Monolog configiuration., (*6)
$app->configureMonologUsing(function ($monolog) {
$monolog->pushHandler(new \Gazatem\DBLogger\DBLogger());
});
Run following command to publish migration and configuration, (*7)
php artisan vendor:publish
php artisan migrate
Open config/dblogger.php file and update the settings., (*8)
Do not fotget to include Log to your class, (*9)
use Log;
And add log entry, (*10)
Log('user.register', ['id' => 23, 'name' => 'John Doe', 'email' => 'john@example.com']);
gazatem.com, (*11)
A Laravel package, helps to log into database and send email alerts
MIT
laravel log monitoring alert mailing