PHP code example of ravaelles / laravel-filebeat

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

    

ravaelles / laravel-filebeat example snippets


return [
    'channels' => [
        'filebeat' => [
            'driver' => 'daily',
            'path' => env('APP_LOG_PATH', '/application/logs/app.log'),
            'tap' => [Shallowman\Log\LogFormatter::class],
            'days' => 7,
        ],
    ],
];

protected $middleware = [
    // ...
    \Shallowman\Log\HandleApplicationLog::class,
];