PHP code example of azurre / php-logger-sender

1. Go to this page and download the library: Download azurre/php-logger-sender 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/ */

    

azurre / php-logger-sender example snippets


$loader =  new \Azurre\Component\Logger\Sender($e) {
    echo "Error: {$e->getMessage()}";
}


return [
    'api' => 'https://logger.site.com/api/',
    'token' => '41689fe08fg67507e857d5248dc89388',
    'storages' => [
        __DIR__ . '/ram_drive/logs/',
        __DIR__ . '/logs/'
    ],
    'max_iterations' => 10,
];
bash
composer