Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Logger / LoggerChannelFactoryInterface.php
1 <?php
2
3 namespace Drupal\Core\Logger;
4
5 use Psr\Log\LoggerInterface;
6
7 /**
8  * Logger channel factory interface.
9  */
10 interface LoggerChannelFactoryInterface {
11
12   /**
13    * Retrieves the registered logger for the requested channel.
14    *
15    * @return \Drupal\Core\Logger\LoggerChannelInterface
16    *   The registered logger for this channel.
17    */
18   public function get($channel);
19
20   /**
21    * Adds a logger to all the channels.
22    *
23    * @param \Psr\Log\LoggerInterface $logger
24    *   The PSR-3 logger to add.
25    * @param int $priority
26    *   The priority of the logger being added.
27    *
28    * @see \Drupal\Core\DependencyInjection\Compiler\RegisterLoggersPass
29    */
30   public function addLogger(LoggerInterface $logger, $priority = 0);
31
32 }