PHP code example of josrom / laravel-logger

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

    

josrom / laravel-logger example snippets


'providers' => [
    // Other Service Providers

    Laravel\ChannelLog\ChannelLogServiceProvider::class,
],

'aliases' => [
    // Other Alias
    
    'ChannelLog' => \Laravel\ChannelLog\ChannelLog::class,
],

    'error' => [
        'path' => 'logs/laravel-error.log',
        'level' => \Monolog\Logger::ERROR,
    ],
    'info' => [
        'path' => 'logs/laravel-info.log',
        'level' => \Monolog\Logger::INFO,
        'extras' => ['internet-provider'],
    ],
bash
php artisan vendor:publish --provider="Laravel\ChannelLog\ChannelLogServiceProvider"