PHP code example of hddev / laravel-request-logger
1. Go to this page and download the library: Download hddev/laravel-request-logger 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/ */
hddev / laravel-request-logger example snippets
use HDDev\LaravelRequestLogger\Middleware\LogRequest;
->withMiddleware(function (Middleware $middleware): void {
$middleware->prepend(LogRequest::class);
})
'log_profile' => App\Logging\MyLogProfile::class, // decides WHAT to log
'log_writer' => App\Logging\MyLogWriter::class, // decides HOW to log it
'request_id_generator' => App\Logging\MyIdGenerator::class, // decides the correlation ID