PHP code example of tijanidevit / php-logger
1. Go to this page and download the library: Download tijanidevit/php-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/ */
tijanidevit / php-logger example snippets
return [
'log_file' => __DIR__ . '/../storage/logs/app.log',
'password' => 'password',
'lines_per_page' => 100,
];
use TijaniDevIt\Logger\Logger;
$logger = new Logger();
$logger->info("Starting process...");
$logger->warning("Something may be wrong.");
$logger->error("An error occurred.");
bash
composer