PHP code example of cirelramostrabajo / plogger

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

    

cirelramostrabajo / plogger example snippets


 \Cirelramostrabajo\Plogger\ElasticServiceProvider::class

return [
        'tcp-logger'   => [
            'name'   => 'elastic',
            'driver' => 'custom',
            'via'    => \Cirelramostrabajo\Plogger\Services\Logs\SendLogTcpMonolog::class,
        ],
        'udp-logger'     => [
            'driver'  => 'monolog',
            'handler' => \Cirelramostrabajo\Plogger\Services\Logs\SendLogUdpJsonHandler::class,
        ],
];
sh
php artisan vendor:publish --provider="Cirelramostrabajo\Plogger\Providers\ElasticServiceProvider"