You are here

public function LoggerChannelPart::info in Purge 8.3

Logs only when granted \Drupal\Core\Logger\RfcLogLevel::INFO.

Overrides LoggerChannelPartInterface::info

File

src/Logger/LoggerChannelPart.php, line 137

Class

LoggerChannelPart
Provides a subchannel whichs logs to a single main channel with permissions.

Namespace

Drupal\purge\Logger

Code

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