1. Go to this page and download the library: Download stackify/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/ */
stackify / logger example snippets
use Stackify\Log\Standalone\Logger;
$logger = new Logger('application_name', 'environment_name');
use Stackify\Log\Transport\ExecTransport;
use Stackify\Log\Standalone\Logger;
$transport = new ExecTransport('api_key');
$logger = new Logger('application_name', 'environment_name', $transport);
$transport = new ExecTransport($apiKey, ['proxy' => 'https://55.88.22.11:3128']);
$transport = new ExecTransport($apiKey, ['curlPath' => '/usr/bin/curl']);
$logger = new Logger('application_name', 'environment_name', $transport, true);