PHP code example of gundars / hoglog

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

    

gundars / hoglog example snippets


composer 

config(
    [
        'hoglog' => [
            'rootPrefix' => 'configuration/hoglog/',
            'logdir'     => storage_path() . '/logs'
        ]
    ]
);
$app->register('HogLog\HogLogServiceProvider');

\HogLog\PlanB::getInstance()->view('../storage/logs/');

#reads dir
example.com/file-calling-planb.php/?browse=../storage/logs/
#reads file
example.com/file-calling-planb.php/?browse=../storage/logs/lumen.log

\HogLog\PlanB::getInstance()->view('../storage/', ['.txt']);

example.com/file-calling-planb.php/?browse=../storage/file.txt

\HogLog\PlanB::getInstance()->view('../storage/logs/', ['lumen.log']);

example.com/file-calling-planb.php/?browse=../storage/file.txt