public function RfcLoggerTrait::critical in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::critical()
File
- core/
lib/ Drupal/ Core/ Logger/ RfcLoggerTrait.php, line 34
Class
- RfcLoggerTrait
- A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Namespace
Drupal\Core\LoggerCode
public function critical($message, array $context = []) {
$this
->log(RfcLogLevel::CRITICAL, $message, $context);
}