PHP code example of pekand / log
1. Go to this page and download the library: Download pekand/log 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/ */
pekand / log example snippets
use pekand\Log\Log;
Log::setAllowedSeverity([
'INFO',
'ERROR',
'DEBUG',
]);
Log::setStoragePath(dirname(__FILE__).'/storage/log/');
Log::write('mesage', 'INFO');