public function LoggerChannelPartInterface::__construct in Purge 8.3
Construct \Drupal\purge\Logger\LoggerChannelPartInterface.
Parameters
\Psr\Log\LoggerInterface $logger_channel_purge: The single and central logger channel used by purge module(s).
string $id: The identifier of the channel part.
int[] $grants: Unassociative array of RFC 5424 log types. Each passed type grants the channel permission to log that type of message, without specific permissions the logger will stay silent for that type.
Grants available:
- \Drupal\Core\Logger\RfcLogLevel::EMERGENCY
- \Drupal\Core\Logger\RfcLogLevel::ALERT
- \Drupal\Core\Logger\RfcLogLevel::CRITICAL
- \Drupal\Core\Logger\RfcLogLevel::ERROR
- \Drupal\Core\Logger\RfcLogLevel::WARNING
- \Drupal\Core\Logger\RfcLogLevel::NOTICE
- \Drupal\Core\Logger\RfcLogLevel::INFO
- \Drupal\Core\Logger\RfcLogLevel::DEBUG.
1 method overrides LoggerChannelPartInterface::__construct()
- LoggerChannelPart::__construct in src/
Logger/ LoggerChannelPart.php - Construct \Drupal\purge\Logger\LoggerChannelPartInterface.
File
- src/
Logger/ LoggerChannelPartInterface.php, line 34
Class
- LoggerChannelPartInterface
- Describes a subchannel whichs logs to a single main channel with permissions.
Namespace
Drupal\purge\LoggerCode
public function __construct(LoggerInterface $logger_channel_purge, $id, array $grants = []);