RfcLoggerTrait::error

public RfcLoggerTrait::error($message, array $context = array())

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

Parameters

string $message:

array $context:

Return value

null

Overrides LoggerInterface::error

File

core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 41

Class

RfcLoggerTrait
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.

Namespace

Drupal\Core\Logger

Code

public function error($message, array $context = array()) {
  $this->log(RfcLogLevel::ERROR, $message, $context);
}
doc_Drupal
2016-10-29 09:38:36
Comments
Leave a Comment

Please login to continue.