PHP code example of iburn36360 / logger
1. Go to this page and download the library: Download iburn36360/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/ */
iburn36360 / logger example snippets
$logger = new \IBurn36360\Logger\Logger(__DIR__ . '/logs/init_log.php');
// This step is ger->registerErrorHandlers();
$logger->logLine('This is an error message', 'Custom Error');
$logger->logCustomLine('Log entry');
$logger->updateLogFile('test.com_log.php');
exit;