PHP code example of myena / default-logger

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

    

myena / default-logger example snippets


$logger = new \MyENA\DefaultLogger();

$logger->debug('hello!');

$logger = new \MyENA\DefaultLogger(\Psr\Log\LogLevel::INFO);

$logger->setLogLevel(\Psr\Log\LogLevel::INFO);

$logger = new \MyENA\DefaultLogger(\Psr\Log\LogLevel::DEBUG, fopen('tmp/test.log', 'ab'));