You are here

public function AbstractLogger::alert in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 vendor/psr/log/Psr/Log/AbstractLogger.php \Psr\Log\AbstractLogger::alert()
  2. 8.3 vendor/psr/log/Psr/Log/AbstractLogger.php \Psr\Log\AbstractLogger::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

void

Overrides LoggerInterface::alert

File

vendor/psr/log/Psr/Log/AbstractLogger.php, line 38

Class

AbstractLogger
This is a simple Logger implementation that other Loggers can inherit from.

Namespace

Psr\Log

Code

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