interface LoggerChannelFactoryInterface
Same name in other branches
- 9 core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php \Drupal\Core\Logger\LoggerChannelFactoryInterface
- 10 core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php \Drupal\Core\Logger\LoggerChannelFactoryInterface
- 11.x core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php \Drupal\Core\Logger\LoggerChannelFactoryInterface
Logger channel factory interface.
Hierarchy
- interface \Drupal\Core\Logger\LoggerChannelFactoryInterface
Expanded class hierarchy of LoggerChannelFactoryInterface
All classes that implement LoggerChannelFactoryInterface
7 files declare their use of LoggerChannelFactoryInterface
- EntityReferenceEntityFormatter.php in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceEntityFormatter.php - ExceptionLoggingSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ ExceptionLoggingSubscriber.php - MailManager.php in core/
lib/ Drupal/ Core/ Mail/ MailManager.php - MediaEmbed.php in core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php - OEmbedFormatter.php in core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ OEmbedFormatter.php
File
-
core/
lib/ Drupal/ Core/ Logger/ LoggerChannelFactoryInterface.php, line 10
Namespace
Drupal\Core\LoggerView source
interface LoggerChannelFactoryInterface {
/**
* Retrieves the registered logger for the requested channel.
*
* @return \Drupal\Core\Logger\LoggerChannelInterface
* The registered logger for this channel.
*/
public function get($channel);
/**
* Adds a logger to all the channels.
*
* @param \Psr\Log\LoggerInterface $logger
* The PSR-3 logger to add.
* @param int $priority
* The priority of the logger being added.
*
* @see \Symfony\Component\HttpKernel\DependencyInjection\LoggerPass
*/
public function addLogger(LoggerInterface $logger, $priority = 0);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
LoggerChannelFactoryInterface::addLogger | public | function | Adds a logger to all the channels. | 1 |
LoggerChannelFactoryInterface::get | public | function | Retrieves the registered logger for the requested channel. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.