You are here

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\Logger

Code

public function debug($message, array $context = []) {
  if ($this->access[RfcLogLevel::DEBUG]) {
    $this
      ->log(LogLevel::DEBUG, $message, $context);
  }
}