public function CurrentUserProcessor::__invoke in Monolog 8
Same name and namespace in other branches
- 2.x src/Logger/Processor/CurrentUserProcessor.php \Drupal\monolog\Logger\Processor\CurrentUserProcessor::__invoke()
Parameters
array $record:
Return value
array
File
- src/
Logger/ Processor/ CurrentUserProcessor.php, line 29
Class
- CurrentUserProcessor
- Class UidProcessor
Namespace
Drupal\monolog\Logger\ProcessorCode
public function __invoke(array $record) {
$record['extra']['uid'] = $this->accountProxy
->id();
$record['extra']['user'] = $this->accountProxy
->getAccountName();
return $record;
}