1. Go to this page and download the library: Download tintonic/php-elog 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/ */
tintonic / php-elog example snippets
create_elog();
/*
Logs to the first instance that was created.
Logs to "__DIR__/elog.log"
*/
elog("I am elog.log");
elog(123, 'Current value', true);
/*
--- Current value {integer} ---
123
*/
create_elog(__DIR__, 'first');
create_elog('/path/to/log', 'second', 'second_log_file', null);
// Log to named instances using elogn().
elogn('first', "I am first.log"); // ———> __DIR__/first.log
elogn('second', "I am second_log_file"); // ———> /path/to/log/second_log_file
use Tintonic/PhpElog/Elog;
/*
Create an instance named "notes" that logs to "/path/to/log/elog.txt" with data type by default.
*/
$logger = new Elog('/path/to/log', 'notes', 'elog', 'txt');
$logger->set_default_
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.