Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Logger.php

function Logger::countErrors

Overrides DebugLoggerInterface::countErrors

File

vendor/symfony/http-kernel/Log/Logger.php, line 124

Class

Logger
Minimalist PSR-3 logger designed to write in stderr or any other stream.

Namespace

Symfony\Component\HttpKernel\Log

Code

public function countErrors(?Request $request = null) : int {
    if ($request) {
        return $this->errorCount[spl_object_id($request)] ?? 0;
    }
    return array_sum($this->errorCount);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal