PHP code example of dremecker / bfw-advanced-log

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

    

dremecker / bfw-advanced-log example snippets





$log



$log->setChannel('ChannelName');



$log->setChannel('ChannelName');

$log->warning('Warning Message');
$log->error('Error Message !');



$log->setChannel('ChannelName');

$log->log($PSR3_LogLevel, 'Message', $context);



$log->setChannel('ChannelName-1');
$log->setChannel('ChannelName-2');

$log->archiveLogFiles();



$log->archiveLogFiles();
bash
$ curl -sS https://getcomposer.org/installer | php
bash
$ php composer.phar install