예제 #1
0
 /**
  * {@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);
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function __invoke(LogEntryInterface $logEntry)
 {
     $context = $logEntry->getContext();
     $context['uid'] = $this->uid;
     $logEntry->setContext($context);
 }
예제 #3
0
 /**
  * {@inheritDoc}
  */
 public function __invoke(LogEntryInterface $logEntry)
 {
     $context = $logEntry->getContext();
     $context['counter'] = ++static::$counter;
     $logEntry->setContext($context);
 }