PHP code example of bitexpert / slf4psrlog

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

    

bitexpert / slf4psrlog example snippets


    \bitExpert\Slf4PsrLog\LoggerFactory::registerFactoryCallback(function($channel) {
        // return configured PSR-3 logger instance
    });

     $logger = \bitExpert\Slf4PsrLog\LoggerFactory::getLogger(__CLASS__);