PHP code example of gpxcat / laravel_log_formatter

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

    

gpxcat / laravel_log_formatter example snippets


'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'graylog'],
    'ignore_exceptions' => true,
    // ...
],

'daily' => [
    'driver' => 'daily',
    // ...
    'tap' => [\Gpxcat\LaravelLogFormatter\Formatter::class],
    // ...
],

'graylog' => [
    'driver' => 'custom',
    'via' => \Gpxcat\LaravelLogFormatter\GraylogLogger::class,
    'host' => env('GRAYLOG_URL', ''),
    'port' => env('GRAYLOG_PORT', ''),
    'level' => env('LOG_LEVEL', 'debug'),
],