RequestUriProcessor.php in Monolog 8
Same filename and directory in other branches
Namespace
Drupal\monolog\Logger\ProcessorFile
src/Logger/Processor/RequestUriProcessor.phpView source
<?php
namespace Drupal\monolog\Logger\Processor;
/**
* Class RequestUriProcessor.php
*/
class RequestUriProcessor extends AbstractRequestProcessor {
/**
* @param array $record
*
* @return array
*/
public function __invoke(array $record) {
if ($request = $this
->getRequest()) {
$record['extra']['request_uri'] = $request
->getUri();
}
return $record;
}
}
Classes
Name | Description |
---|---|
RequestUriProcessor | Class RequestUriProcessor.php |