You are here

public function LoggerBase::emergency in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Logger/LoggerBase.php \Drupal\service_container\Logger\LoggerBase::emergency()

System is unusable.

Parameters

string $message:

array $context:

Return value

null

Overrides LoggerInterface::emergency

File

src/Logger/LoggerBase.php, line 21
Contains \Drupal\service_container\Logger\LoggerBase.

Class

LoggerBase
Provides a common base class for loggers to reduce boilerplate code.

Namespace

Drupal\service_container\Logger

Code

public function emergency($message, array $context = array()) {
  return $this
    ->log(LogLevel::EMERGENCY, $message, $context);
}