PHP code example of edrard / mylog

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

    

edrard / mylog example snippets



use edrard\Log\MyLog;


MyLog::info('info');

MyLog::init('logs','log',array(new NativeMailerHandler('[email protected]', '[ERROR]', '[email protected]', Logger::ERROR, false) );
MyLog::critical('Critical');
MyLog::warning('Warning');
MyLog::error('Error');


MyLog::error('Error',array(),'log2');
MyLog::info('info',array(),'log2');