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

Breadcrumb

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

interface DebugLoggerInterface

DebugLoggerInterface.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\HttpKernel\Log\DebugLoggerInterface

Expanded class hierarchy of DebugLoggerInterface

All classes that implement DebugLoggerInterface

1 file declares its use of DebugLoggerInterface
LoggerDataCollector.php in vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php

File

vendor/symfony/http-kernel/Log/DebugLoggerInterface.php, line 21

Namespace

Symfony\Component\HttpKernel\Log
View source
interface DebugLoggerInterface {
    
    /**
     * Returns an array of logs.
     *
     * @return array<array{
     *     channel: ?string,
     *     context: array<string, mixed>,
     *     message: string,
     *     priority: int,
     *     priorityName: string,
     *     timestamp: int,
     *     timestamp_rfc3339: string,
     * }>
     */
    public function getLogs(?Request $request = null) : array;
    
    /**
     * Returns the number of errors.
     */
    public function countErrors(?Request $request = null) : int;
    
    /**
     * Removes all log records.
     */
    public function clear() : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DebugLoggerInterface::clear public function Removes all log records. 1
DebugLoggerInterface::countErrors public function Returns the number of errors. 1
DebugLoggerInterface::getLogs public function Returns an array of logs. 1

API Navigation

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