public function LoggerTrait::alert in TMGMT Translator Smartling 8.2
Same name and namespace in other branches
- 8.4 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::alert()
- 8.3 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::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
File
- vendor/
psr/ log/ Psr/ Log/ LoggerTrait.php, line 39
Class
- LoggerTrait
- This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.
Namespace
Psr\LogCode
public function alert($message, array $context = array()) {
$this
->log(LogLevel::ALERT, $message, $context);
}