PHP code example of idealogica / log-x
1. Go to this page and download the library: Download idealogica/log-x 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/ */
idealogica / log-x example snippets
$logX = new LogX('vfs://root/test.log');
$logX->enableStdoutEcho();
$logX->alert('alert');
$logX->critical('critical');
$logX->debug('debug');
$logX->emergency('emergency');
$logX->error('error');
$logX->info('info');
$logX->notice('notice');
$logX->warning('warning');
$logX->log(LogLevel::ALERT, 'message', ['time_output' => false]);