PHP code example of jk / monolog-request-header-processor

1. Go to this page and download the library: Download jk/monolog-request-header-processor 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/ */

    

jk / monolog-request-header-processor example snippets


use Monolog\Logger;

$log = new Monolog\Logger('test');
$log->pushProcessor(new \JK\Monolog\Processor\RequestHeaderProcessor());
$log->pushHandler(…);

$log->notice('Noticed something');