PHP code example of twistersfury / monolog-helpers

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

    

twistersfury / monolog-helpers example snippets


use TwistersFury\Monolog\Processors\GlobalsProcessor;
$processor = new GlobalsProcessor();

use TwistersFury\Monolog\Processors\GlobalsProcessor;
$processor = new GlobalsProcessor(
    [
        'post'    => true,
        'get'     => false,
        'request' => false,
        'server'  => true
    ]
);

use TwistersFury\Monolog\Processors\BacktraceProcessor;

$processor = new BacktraceProcessor();

use TwistersFury\Monolog\Processors\BacktraceProcessor;

//The five most recent stacks will be ignored.
$processor = new BacktraceProcessor(5);