PHP code example of larawelders / queue-event-logger

1. Go to this page and download the library: Download larawelders/queue-event-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/ */

    

larawelders / queue-event-logger example snippets


'channel' => 'queue',

'channel_config' => [
    'driver' => 'daily',
    'path' => storage_path('logs/queue.log'),
    'level' => 'debug',
],

'channels' => [
    'queue' => [
        'driver' => 'single',
        'path' => storage_path('logs/app-queue.log'),
        'level' => 'info',
    ],
],
bash
php artisan vendor:publish --tag=queue-event-logger-config