public function RfcLoggerTrait::alert
public RfcLoggerTrait::alert($message, array $context = array())
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
- core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 27
Class
- RfcLoggerTrait
- A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Namespace
Drupal\Core\LoggerCode
public function alert($message, array $context = array()) { $this->log(RfcLogLevel::ALERT, $message, $context); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Logger!RfcLoggerTrait.php/function/RfcLoggerTrait::alert/8.1.x