public function LoggerBase::critical in Service Container 7
Same name and namespace in other branches
- 7.2 src/Logger/LoggerBase.php \Drupal\service_container\Logger\LoggerBase::critical()
Critical conditions.
Example: Application component unavailable, unexpected exception.
Parameters
string $message:
array $context:
Return value
null
Overrides LoggerInterface::critical
File
- src/
Logger/ LoggerBase.php, line 35 - Contains \Drupal\service_container\Logger\LoggerBase.
Class
- LoggerBase
- Provides a common base class for loggers to reduce boilerplate code.
Namespace
Drupal\service_container\LoggerCode
public function critical($message, array $context = array()) {
return $this
->log(LogLevel::CRITICAL, $message, $context);
}