You are here

public function RfcLoggerTrait::alert in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::alert()

File

core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 32
Contains \Drupal\Core\Logger\RfcLoggerTrait.

Class

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

Namespace

Drupal\Core\Logger

Code

public function alert($message, array $context = array()) {
  $this
    ->log(RfcLogLevel::ALERT, $message, $context);
}