PHP code example of krak / psr-log-util
1. Go to this page and download the library: Download krak/psr-log-util 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/ */
krak / psr-log-util example snippets
use Krak\PsrLogUtil\TemplateLogger;
$logger = new SomePsr3Logger();
$logger = new TemplateLogger('Acme: %s', $logger);
$logger->info("Hi");
// should output something like: Acme: Hi