PHP code example of devzone / log-monitor

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

    

devzone / log-monitor example snippets


'queries' => [
    'mode'              => 'sampled',   // summary | sampled | all
    'sample_rate'       => 0.10,
    'max_per_request'   => 2000,
    'capture_location'  => 'slow',      // slow | all
    'slow_ms'           => 100,
    'repeated_threshold'=> 10,
],

'jobs' => [
    'overrides' => [
        \App\Jobs\RunSanctions::class => [
            'queries.mode' => 'all',
            'queries.max_per_request' => 20000,
        ],
    ],
],