public function AbstractLogger::error

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

Parameters

string $message:

array $context:

Return value

null

Overrides LoggerInterface::error

File

drupal/core/vendor/psr/log/Psr/Log/AbstractLogger.php, line 63

Class

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

Namespace

Psr\Log

Code

public function error($message, array $context = array()) {
  $this
    ->log(LogLevel::ERROR, $message, $context);
}