public function CurrentUserProcessor::__invoke in Monolog 2.x
Same name and namespace in other branches
- 8 src/Logger/Processor/CurrentUserProcessor.php \Drupal\monolog\Logger\Processor\CurrentUserProcessor::__invoke()
File
- src/
Logger/ Processor/ CurrentUserProcessor.php, line 32
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;
}