public RfcLoggerTrait::critical($message, array $context = array())
Critical conditions.
Example: Application component unavailable, unexpected exception.
Parameters
string $message:
array $context:
Return value
null
Overrides LoggerInterface::critical
File
- core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 34
Class
- RfcLoggerTrait
- A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Namespace
Drupal\Core\Logger
Code
public function critical($message, array $context = array()) { $this->log(RfcLogLevel::CRITICAL, $message, $context); }
Please login to continue.