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

Breadcrumb

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

function DebugLoggerConfigurator::getDebugLogger

3 calls to DebugLoggerConfigurator::getDebugLogger()
ErrorListener::duplicateRequest in vendor/symfony/http-kernel/EventListener/ErrorListener.php
Clones the request for the exception.
HtmlErrorRenderer::renderException in vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php
LoggerDataCollector::__construct in vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php

File

vendor/symfony/http-kernel/Log/DebugLoggerConfigurator.php, line 37

Class

DebugLoggerConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpKernel\Log

Code

public static function getDebugLogger(mixed $logger) : ?DebugLoggerInterface {
    if ($logger instanceof DebugLoggerInterface) {
        return $logger;
    }
    if (!$logger instanceof Logger) {
        return null;
    }
    foreach ($logger->getProcessors() as $processor) {
        if ($processor instanceof DebugLoggerInterface) {
            return $processor;
        }
    }
    return null;
}

API Navigation

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