PHP code example of softdd / requestlog
1. Go to this page and download the library: Download softdd/requestlog 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/ */
softdd / requestlog example snippets
// app/Http/Kernel.php
class Kernel extends HttpKernel
{
protected $middleware = [
// ...
\SoftDD\RequestLog\RequestLog::class
];
// ...
}
//softDDRequestLog.php
return [
'logSql'=>true,
'addRunTimeHeader'=>true,
'RunTimeHeader'=>'X-RUNTIME',
'logInput'=>false,
'logFile'=>'request',
'message'=>'request'
];