PHP code example of gazatem / dblogger
1. Go to this page and download the library: Download gazatem/dblogger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gazatem / dblogger example snippets
composer dump-autoload
Gazatem\DBLogger\DBLoggerServiceProvider::class
$app->configureMonologUsing(function ($monolog) {
$monolog->pushHandler(new \Gazatem\DBLogger\DBLogger());
});
php artisan vendor:publish
php artisan migrate
use Log;
Log('user.register', ['id' => 23, 'name' => 'John Doe', 'email' => '[email protected]']);