You are here

public function LoggerTrait::error in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::error()
  2. 8.3 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::error()

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

string $message:

array $context:

Return value

void

File

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

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 error($message, array $context = array()) {
  $this
    ->log(LogLevel::ERROR, $message, $context);
}