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\Logger
Code
public function alert($message, array $context = array()) { $this->log(RfcLogLevel::ALERT, $message, $context); }
Please login to continue.