PHP code example of webplace / logger

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

    

webplace / logger example snippets




use WebPlace\Logger;

Logger::setLogDirectory('/to_log_directory/');

Logger::writeLog('message to write log');

Logger::writeWarningLog('message to write log');

Logger::writeErrorLog('message to write log');

Logger::writeExceptionLog('message to write log', new Throwable('error'));