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

Breadcrumb

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

class AbstractLogger

This is a simple Logger implementation that other Loggers can inherit from.

It simply delegates all log-level-specific methods to the `log` method to reduce boilerplate code that a simple Logger that does the same thing with messages regardless of the error level has to implement.

Hierarchy

  • class \Psr\Log\AbstractLogger implements \Psr\Log\LoggerInterface uses \Psr\Log\LoggerTrait

Expanded class hierarchy of AbstractLogger

4 files declare their use of AbstractLogger
BufferingLogger.php in vendor/symfony/error-handler/BufferingLogger.php
ConsoleLogger.php in vendor/symfony/console/Logger/ConsoleLogger.php
Logger.php in vendor/symfony/http-kernel/Log/Logger.php
TestLogger.php in vendor/colinodell/psr-testlogger/src/TestLogger.php

File

vendor/psr/log/src/AbstractLogger.php, line 12

Namespace

Psr\Log
View source
abstract class AbstractLogger implements LoggerInterface {
    use LoggerTrait;

}
RSS feed
Powered by Drupal