PHP code example of ntentan / logger
1. Go to this page and download the library: Download ntentan/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/ */
ntentan / logger example snippets
use ntentan\logger\Logger;
// Initialize the logger
Logger::init("/path/to/log/file.log");
// Write some logs
Logger::log(Logger::DEBUG, "Hello!");
Logger::warning("World!");