PHP code example of eur-rsm / laravel-logging

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

    

eur-rsm / laravel-logging example snippets


return [
    // ...
    'single' => [
        'driver' => 'single',
        'path' => storage_path('logs/laravel.log'),
        'level' => 'debug',
        'tap' => [\EUR\RSM\LaravelLogging\Tap\ConfiguredProcessororsTap::class],
    ],
    // ...
];

return [
    // ...
    'single' => [
        'driver' => 'single',
        'path' => storage_path('logs/laravel.log'),
        'level' => 'debug',
        'formatter' => \EUR\RSM\LaravelLogging\Formatter\ElasticCommonSchemaFormatter::class,
    ],
    // ...
];