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