You are here

public function LoggerTrait::critical in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::critical()

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message:

array $context:

Return value

null

File

vendor/psr/log/Psr/Log/LoggerTrait.php, line 51

Class

LoggerTrait
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.

Namespace

Psr\Log

Code

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