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