PHP code example of astrotomic / laravel-monolog-config

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

    

astrotomic / laravel-monolog-config example snippets


/*
|--------------------------------------------------------------------------
| Configure Monolog
|--------------------------------------------------------------------------
*/

$app->configureMonologUsing(function (Monolog\Logger $monolog) {
    $configurator = new \Astrotomic\MonologConfig\MonologConfigurator($monolog);
    $configurator->run();
});

php artisan vendor:publish --provider="Astrotomic\MonologConfig\MonologConfigServiceProvider"