public function RequestUriProcessor::__invoke in Monolog 8
Same name and namespace in other branches
- 2.x src/Logger/Processor/RequestUriProcessor.php \Drupal\monolog\Logger\Processor\RequestUriProcessor::__invoke()
Parameters
array $record:
Return value
array
File
- src/
Logger/ Processor/ RequestUriProcessor.php, line 15
Class
Namespace
Drupal\monolog\Logger\ProcessorCode
public function __invoke(array $record) {
if ($request = $this
->getRequest()) {
$record['extra']['request_uri'] = $request
->getUri();
}
return $record;
}