PHP code example of exolnet / laravel-graylog

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

    

exolnet / laravel-graylog example snippets


    Exolnet\Graylog\GraylogServiceProvider::class
    

    'graylog' => [
        'driver' => 'graylog',
        'level' => 'notice',
        'handler_with' => [
            'transport' => env('LOG_GRAYLOG_TRANSPORT', 'udp'),
            'host' => env('LOG_GRAYLOG_HOST', 'localhost'),
            'port' => env('LOG_GRAYLOG_PORT', 12201),
            'path' => env('LOG_GRAYLOG_PATH', '/gelf'),
            'extra' => [
                //
            ]
        ],
    ],