function RfcLoggerTrait::emergency

Same name in other branches
  1. 9 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::emergency()
  2. 10 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::emergency()
  3. 11.x core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::emergency()

File

core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 20

Class

RfcLoggerTrait
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.

Namespace

Drupal\Core\Logger

Code

public function emergency($message, array $context = []) {
    $this->log(RfcLogLevel::EMERGENCY, $message, $context);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.