1. Go to this page and download the library: Download baagee/php-log 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/ */
baagee / php-log example snippets
interface LogInterface
{
public static function emergency(string $log, $file = '', $line = 0);
public static function alert(string $log, $file = '', $line = 0);
public static function critical(string $log, $file = '', $line = 0);
public static function error(string $log, $file = '', $line = 0);
public static function warning(string $log, $file = '', $line = 0);
public static function notice(string $log, $file = '', $line = 0);
public static function info(string $log, $file = '', $line = 0);
public static function debug(string $log, $file = '', $line = 0);
}