PHP code example of lenoxzzedwin / simple-log

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

    

lenoxzzedwin / simple-log example snippets




enoxzzedwin\SimpleLog\SimpleLog;
$log = new SimpleLog();
$log->lfile('path'); //load file

$log->lwrite(['hello','world']); // array
$log->lwrite('Hello World'); // string
$data = ['person' => ['name'=>'Edwin']];
$log->lwrite( (object) $data);  //object ALL!

$log->lclose();