PHP code example of reasno / elk-logger

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

    

reasno / elk-logger example snippets


return [
    //...
    'custom' => [
        'driver' => 'custom',
        'via' => Reasno\ElkLogger\ElkLogger::class,
        'level' => 'info',
        'password' => "XXXXXXX",
        'host' => '127.0.0.1',
        'port' => XXXX,
        'type' => 'some unique id'
    ],
    //...
];