PHP code example of it-m-h / logger

1. Go to this page and download the library: Download it-m-h/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/ */

    

it-m-h / logger example snippets


    return [
        "DB" => './../data/logging.sqlite3',
        "TABLE" => 'log'
    ];

$log = new \logger\Logger();
$log->write('Hello World!');


echo '<pre>';
print_r($log->show());
echo '</pre>';

echo '<pre>';
print_r($log->getDataBy('ip'));
echo '</pre>';