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