You are here

public function AbstractLogger::critical in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 vendor/psr/log/Psr/Log/AbstractLogger.php \Psr\Log\AbstractLogger::critical()
  2. 8.3 vendor/psr/log/Psr/Log/AbstractLogger.php \Psr\Log\AbstractLogger::critical()

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message:

array $context:

Return value

void

Overrides LoggerInterface::critical

File

vendor/psr/log/Psr/Log/AbstractLogger.php, line 53

Class

AbstractLogger
This is a simple Logger implementation that other Loggers can inherit from.

Namespace

Psr\Log

Code

public function critical($message, array $context = array()) {
  $this
    ->log(LogLevel::CRITICAL, $message, $context);
}