PHP code example of lablnet / logger
1. Go to this page and download the library: Download lablnet/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/ */
lablnet / logger example snippets
use Lablnet\Logger;
f you want set custom file
// prototype: $logger->setFile(filewithpath);
// $logger->setFile("../my.logs");
$logger->debug("Hi im log msg and im {field}" , ['field' => 'debug']);
var_dump($logger->get());