PHP code example of mafin / simple-logger
1. Go to this page and download the library: Download mafin/simple-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/ */
mafin / simple-logger example snippets
use Mafin\SimpleLogger\Logger;
use Psr\Log\LogLevel;
$logger = new Logger('app.log', LogLevel::DEBUG);
$logger->info('This is an info message.');
$logger->error('This is an error message.');