PHP code example of krysvac / clogger
1. Go to this page and download the library: Download krysvac/clogger 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/ */
krysvac / clogger example snippets
// A folder called 'log' will be created in your output folder.
// This is where all the files will be created in.
CLogger::setOutputDir("/path/to/your/output/folder");
// Initializes class
CLogger::init();
trigger_error("This is a warning!", E_USER_WARNING);
error_reporting(E_ALL);
CLogger::init();