PHP code example of davtur19 / monolog-viewer

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

    

davtur19 / monolog-viewer example snippets



er = new \Jtclark\MonologViewer([
    'user' => 'user',
    'pass' => 'abc123',
    'path' => 'sample.log',
    'template' => 'optional_log_template.twig'
]);

// commenting out this line will disable authentication
$viewer->authenticate();

$viewer->render();