PHP code example of lf4php / lf4php-stdout
1. Go to this page and download the library: Download lf4php/lf4php-stdout 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/ */
lf4php / lf4php-stdout example snippets
LoggerFactory::setILoggerFactory(new StdoutLoggerFactory());
$logger = LoggerFactory::getLogger(null);
$logger->info('Message');
$logger->debug('Hello {{name}}!', array('name' => 'John'));
$logger->error(new \Exception());