You are here

public function LoggerDataCollector::lateCollect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php \Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector::lateCollect()

Collects data as late as possible.

Overrides LateDataCollectorInterface::lateCollect

File

vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php, line 45

Class

LoggerDataCollector
LogDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function lateCollect() {
  if (null !== $this->logger) {
    $this->data = $this
      ->computeErrorsCount();
    $this->data['logs'] = $this
      ->sanitizeLogs($this->logger
      ->getLogs());
  }
}