public function LoggerChannelPart::error in Purge 8.3
Logs only when granted \Drupal\Core\Logger\RfcLogLevel::ERROR.
Overrides LoggerChannelPartInterface::error
File
- src/
Logger/ LoggerChannelPart.php, line 110
Class
- LoggerChannelPart
- Provides a subchannel whichs logs to a single main channel with permissions.
Namespace
Drupal\purge\LoggerCode
public function error($message, array $context = []) {
if ($this->access[RfcLogLevel::ERROR]) {
$this
->log(LogLevel::ERROR, $message, $context);
}
}