You are here

interface LoggerChannelPartFactoryInterface in Purge 8.3

Describes a factory that creates LoggerChannelPartInterface instances.

Hierarchy

Expanded class hierarchy of LoggerChannelPartFactoryInterface

All classes that implement LoggerChannelPartFactoryInterface

File

src/Logger/LoggerChannelPartFactoryInterface.php, line 11

Namespace

Drupal\purge\Logger
View source
interface LoggerChannelPartFactoryInterface extends ServiceProviderInterface, ServiceModifierInterface {

  /**
   * Create a channel part instance.
   *
   * @param string $id
   *   The identifier of the channel part.
   * @param 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.
   *
   * @return \Drupal\purge\Logger\LoggerChannelPartInterface
   *   The channel part instance.
   */
  public function create($id, array $grants = []);

}

Members

Namesort descending Modifiers Type Description Overrides
LoggerChannelPartFactoryInterface::create public function Create a channel part instance. 1
ServiceModifierInterface::alter public function Modifies existing service definitions. 13
ServiceProviderInterface::register public function Registers services to the container. 14