You are here

public function LoggerBase::alert in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Logger/LoggerBase.php \Drupal\service_container\Logger\LoggerBase::alert()

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters

string $message:

array $context:

Return value

null

Overrides LoggerInterface::alert

File

src/Logger/LoggerBase.php, line 28
Contains \Drupal\service_container\Logger\LoggerBase.

Class

LoggerBase
Provides a common base class for loggers to reduce boilerplate code.

Namespace

Drupal\service_container\Logger

Code

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