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

Breadcrumb

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

function LoggerInterface::error

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

mixed[] $context:

1 method overrides LoggerInterface::error()
BaseIO::error in vendor/composer/composer/src/Composer/IO/BaseIO.php

File

vendor/psr/log/src/LoggerInterface.php, line 54

Class

LoggerInterface
Describes a logger instance.

Namespace

Psr\Log

Code

public function error(string|\Stringable $message, array $context = []) : void;

API Navigation

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