class RequestUriProcessor in Monolog 2.x
Same name and namespace in other branches
- 8 src/Logger/Processor/RequestUriProcessor.php \Drupal\monolog\Logger\Processor\RequestUriProcessor
Class RequestUriProcessor.php
Hierarchy
- class \Drupal\monolog\Logger\Processor\AbstractRequestProcessor
- class \Drupal\monolog\Logger\Processor\RequestUriProcessor
Expanded class hierarchy of RequestUriProcessor
1 string reference to 'RequestUriProcessor'
1 service uses RequestUriProcessor
File
- src/
Logger/ Processor/ RequestUriProcessor.php, line 8
Namespace
Drupal\monolog\Logger\ProcessorView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractRequestProcessor:: |
private | property | ||
AbstractRequestProcessor:: |
public | function | ||
AbstractRequestProcessor:: |
public | function | RequestProcessor constructor. | |
RequestUriProcessor:: |
public | function |