PHP code example of defstudio / laravel-clog-detector
1. Go to this page and download the library: Download defstudio/laravel-clog-detector 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/ */
defstudio / laravel-clog-detector example snippets
return [
'slow_responses' => [
/*
* Enables slow responses reporting
*/
'report' => env('SLOW_RESPONSES_REPORT', false),
/*
* Max http request handling time expressed in seconds.
*/
'threshold' => env('SLOW_RESPONSES_MAX_SECS', 5),
/*
* Route names that will not report a long execution time.
*/
'ignored_routes' => [
],
/*
* Urls that will not report a long execution time.
*/
'ignored_urls' => [
],
/*
* The middleware to be used to check response times.
* it must implement DefStudio\ClogDetector\Contracts\MeasureHttpResponseTime
*/
'middleware' => MeasureHttpResponseTime::class,
],
];