1. Go to this page and download the library: Download imafaz/easylog 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/ */
imafaz / easylog example snippets
use EasyLog\Logger;
use EasyLog\Logger;
$logger = new Logger('/path/to/file.log');
// debug message:
$logger->debug('This is a debug message.');
// info message:
$logger->info('This is an informational message.');
// warning message:
$logger->warning('This is a warning message.');
// error message:
$logger->error('This is an error message.');
// fatal exception:
$logger->fatal('This is a fatal message.');