1. Go to this page and download the library: Download phpmake/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/ */
phpmake / logger example snippets
ultLogger = new \PHPMake\Logger();
$defaultLogger = new \PHPMake\Logger('php://stdout');
$fileAppender = new \PHPMake\Logger('file:///tmp/app.log');
// or
// $fileAppender = new \PHPMake\Logger('file:///tmp/app.log', 'a');
$logger = new \PHPMake\Logger();
$logger->setThreshold(\Psr\Log\LogLevel::WARNING);
// debug, info and notice will not be output.
$logger->debug('debug');
$logger->info('info');
$logger->notice('notice');
// level which is warning or higher will be outputted.
$logger->warning('warning');
$logger->error('error');
$logger->critical('critical');
$logger->alert('alert');
$logger->emergency('emergency');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.