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