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