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
1 2 3 | public function error( $message , array $context = array ()) { $this ->log(RfcLogLevel::ERROR, $message , $context ); } |
Please login to continue.