PHP code example of omatech / laravel-monolog-ext

1. Go to this page and download the library: Download omatech/laravel-monolog-ext 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/ */

    

omatech / laravel-monolog-ext example snippets

 php
$app->configureMonologUsing(function ($monolog) {
    $logger = App::make(MonologLogging::class);
    $logger->pushHandler($monolog);
});
sh
php artisan vendor:publish  --provider="Omatech\LaravelMonologExt\LaravelMonologExtServiceProvider"