function RfcLoggerTrait::error
File
-
core/
lib/ Drupal/ Core/ Logger/ RfcLoggerTrait.php, line 41
Class
- RfcLoggerTrait
- A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Namespace
Drupal\Core\LoggerCode
public function error(string|\Stringable $message, array $context = []) : void {
$this->log(RfcLogLevel::ERROR, $message, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.