PHP code example of fastik1 / logger

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

    

fastik1 / logger example snippets




astik1\Logger\Logger;

Logger::setPath('logs'); // Default value
Logger::setExtension('.log'); // Default value
Logger::setDateFormat('d.m.Y H:i:s'); // Default value

Logger::add('errors', 'Fatal error...', ['info' => 'your info', 'data' => 'your data']);