/** * {@inheritDoc} */ public function __invoke(LogEntryInterface $logEntry) { $context = $logEntry->getContext(); $context['memory']['used'] = memory_get_usage(true); $context['memory']['peak'] = memory_get_peak_usage(true); $logEntry->setContext($context); }
/** * {@inheritDoc} */ public function __invoke(LogEntryInterface $logEntry) { $context = $logEntry->getContext(); $context['uid'] = $this->uid; $logEntry->setContext($context); }
/** * {@inheritDoc} */ public function __invoke(LogEntryInterface $logEntry) { $context = $logEntry->getContext(); $context['counter'] = ++static::$counter; $logEntry->setContext($context); }