PHP code example of peipei / beanstalk-logger-channel

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

    

peipei / beanstalk-logger-channel example snippets


'beanstalk' => [
    'driver' => 'custom',
    'via'    => Logger\BeanstalkJobLogger::class,
    'level'  => 'debug',
]



return [
    // Beanstalk host
    'host' => env('BEANSTALKD_HOST', '127.0.0.1'),

    // Beanstalk tube
    'tube' => env('BEANSTALKD_JOB_TUBE', 'laravel-log'),
];

'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'beanstalk'],
]