interface LoggerChannelFactoryInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
3 files declare their use of LoggerChannelFactoryInterface
- EntityReferenceEntityFormatter.php in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceEntityFormatter.php - Contains \Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceEntityFormatter.
- ExceptionLoggingSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ ExceptionLoggingSubscriber.php - Contains \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber.
- MailManager.php in core/
lib/ Drupal/ Core/ Mail/ MailManager.php - Contains \Drupal\Core\Mail\MailManager.
File
- core/
lib/ Drupal/ Core/ Logger/ LoggerChannelFactoryInterface.php, line 15 - Contains \Drupal\Core\Logger\LoggerChannelFactoryInterface.
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.
*
* Here is were all services tagged as 'logger' are being retrieved and then
* passed to the channels after instantiation.
*
* @param \Psr\Log\LoggerInterface $logger
* The PSR-3 logger to add.
* @param int $priority
* The priority of the logger being added.
*
* @see \Drupal\Core\DependencyInjection\Compiler\RegisterLoggersPass
*/
public function addLogger(LoggerInterface $logger, $priority = 0);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoggerChannelFactoryInterface:: |
public | function | Adds a logger. | 1 |
LoggerChannelFactoryInterface:: |
public | function | Retrieves the registered logger for the requested channel. | 1 |