PHP code example of maatify / logger

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

    

maatify / logger example snippets


    use Maatify\Logger\Logger;
    
    //$log = 'test';
    $log = ['name' => 'test', 'description' => 'Logger test'];
    
    $log_file = 'test';

    Logger::RecordLog(string|array $log, string $file_name, string log_file_extinsion);